Skip to content

Commit

Permalink
Fix: Linting issues in settings-livekit and Daily-plan-compare-estima (
Browse files Browse the repository at this point in the history
…#2830)

* fix: linting issues in settings-livekit and daily-plan-compare-estimate-modal

* fix: cspell
  • Loading branch information
Innocent-Akim authored Aug 4, 2024
1 parent e79eb6d commit 40bf40b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,8 @@
"Kolkata",
"Kosrae",
"Koyeb",
"Krisp",
"krisp",
"labore",
"Lask",
"lastest",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import { useDailyPlan, useTeamMemberCard, useTimer, useTMCardTaskEdit } from '@a
import { dailyPlanCompareEstimated } from '@app/helpers/daily-plan-estimated';
import { secondsToTime } from '@app/helpers';
import { DAILY_PLAN_ESTIMATE_HOURS_MODAL_DATE } from '@app/constants';
import { ScrollArea } from '@components/ui/scroll-bar';

export interface IDailyPlanCompareEstimated {
difference?: boolean;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,12 @@ import { shortenLink } from 'lib/utils';
import { BiLoaderCircle } from "react-icons/bi";



// eslint-disable-next-line @typescript-eslint/no-empty-interface
export interface SettingsMenuProps extends React.HTMLAttributes<HTMLDivElement> { }

export function SettingsMenu(props: SettingsMenuProps) {
const TrackToggleComponent = TrackToggle as React.ElementType;

const layoutContext = useMaybeLayoutContext();
const [copied, setCopied] = React.useState<boolean>(false);

Expand Down Expand Up @@ -93,7 +95,7 @@ export function SettingsMenu(props: SettingsMenuProps) {
<>
<h3>Camera</h3>
<section className="lk-button-group">
<TrackToggle source={Track.Source.Camera}>Camera</TrackToggle>
<TrackToggleComponent source={Track.Source.Camera}>Camera</TrackToggleComponent>
<div className="lk-button-group-menu">
<MediaDeviceMenu kind="videoinput" />
</div>
Expand All @@ -104,7 +106,7 @@ export function SettingsMenu(props: SettingsMenuProps) {
<>
<h3>Microphone</h3>
<section className="lk-button-group">
<TrackToggle source={Track.Source.Microphone}>Microphone</TrackToggle>
<TrackToggleComponent source={Track.Source.Microphone}>Microphone</TrackToggleComponent>
<div className="lk-button-group-menu">
<MediaDeviceMenu kind="audioinput" />
</div>
Expand Down

0 comments on commit 40bf40b

Please sign in to comment.