Skip to content

Commit

Permalink
Fix eslint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
EasySouls committed Jan 21, 2025
1 parent 8b624b9 commit 178e0ae
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion apps/frontend/src/components/ui/StatusBadge.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { Badge } from '@/components/ui/badge';
import { statusConvert } from '@/lib/status';
import { ApplicationStatus } from '@/types/application-entity';

export default function StatusBadge({ status, hover }: Readonly<{ status: ApplicationStatus }> & { hover?: boolean }) {
export default function StatusBadge({ status }: Readonly<{ status: ApplicationStatus }>) {
const convertedStatus = statusConvert(status);
const color = useMemo(() => {
switch (ApplicationStatus[convertedStatus]) {
Expand Down
2 changes: 0 additions & 2 deletions apps/frontend/src/lib/useKeyboardShortcut.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,9 @@ export const useKeyboardShortcut = (keys: Key[], callback: (idxOfKey?: number) =
}
};

// eslint-disable-next-line no-undef
window.addEventListener('keydown', handleKeyDown);

return () => {
// eslint-disable-next-line no-undef
window.removeEventListener('keydown', handleKeyDown);
};
}, [keys, callback]);
Expand Down

0 comments on commit 178e0ae

Please sign in to comment.