Skip to content

Commit

Permalink
Format UI code and fix lint errors (#328)
Browse files Browse the repository at this point in the history
* Fix lint warnings

* Format everything with `npm run format`
  • Loading branch information
paulcretu committed Jan 31, 2024
1 parent ef38743 commit a2a17f6
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 50 deletions.
43 changes: 0 additions & 43 deletions ui/src/components/BottomNav.tsx

This file was deleted.

2 changes: 1 addition & 1 deletion ui/src/components/Player/DetectionsPlayer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export function DetectionsPlayer({
timestamp,
startOffset,
endOffset,
onAudioPlay
onAudioPlay,
}: {
feed: Pick<Feed, "nodeName">;
marks: { label: string; value: number }[];
Expand Down
5 changes: 1 addition & 4 deletions ui/src/components/layouts/MapLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,7 @@ import { ReactElement, ReactNode, useEffect, useState } from "react";

import Drawer from "@/components/Drawer";
import Header from "@/components/Header";
import {
useFeedQuery,
useFeedsQuery,
} from "@/graphql/generated";
import { useFeedQuery, useFeedsQuery } from "@/graphql/generated";
import { displayDesktopOnly, displayMobileOnly } from "@/styles/responsive";

import Player, { PlayerSpacer } from "../Player";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ mutation cancelCandidateNotifications($candidateId: ID!) {
vars
}
}
}
}
2 changes: 1 addition & 1 deletion ui/src/graphql/mutations/signOut.graphql
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
mutation signOut {
signOut
}
}
2 changes: 2 additions & 0 deletions ui/src/styles/responsive.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// These are helpers/utility so it's okay if not used
/* eslint-disable import/no-unused-modules */
import { Theme } from "@mui/material";

export const displayMobileOnly = { display: { xs: "block", sm: "none" } };
Expand Down

0 comments on commit a2a17f6

Please sign in to comment.