diff options
Diffstat (limited to 'src/components/Frames')
| -rw-r--r-- | src/components/Frames/Frames.tsx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/components/Frames/Frames.tsx b/src/components/Frames/Frames.tsx index 83c4c96..1d31d92 100644 --- a/src/components/Frames/Frames.tsx +++ b/src/components/Frames/Frames.tsx | |||
| @@ -5,7 +5,7 @@ import classNames from "classnames"; | |||
| 5 | import styles from "./Frames.module.scss"; | 5 | import styles from "./Frames.module.scss"; |
| 6 | import dayjs from "dayjs"; | 6 | import dayjs from "dayjs"; |
| 7 | import ReactJson from "react-json-view"; | 7 | import ReactJson from "react-json-view"; |
| 8 | import { DarkModeContext } from "~/contexts/DarkMode"; | 8 | import { SettingsContext } from "~/contexts/Settings"; |
| 9 | 9 | ||
| 10 | function isJson(data: any): boolean { | 10 | function isJson(data: any): boolean { |
| 11 | try { | 11 | try { |
| @@ -23,7 +23,6 @@ interface FramesProps { | |||
| 23 | export default function Frames({ | 23 | export default function Frames({ |
| 24 | frames, | 24 | frames, |
| 25 | }: PropsWithChildren<FramesProps>): JSX.Element { | 25 | }: PropsWithChildren<FramesProps>): JSX.Element { |
| 26 | const { darkMode } = useContext(DarkModeContext); | ||
| 27 | return ( | 26 | return ( |
| 28 | <ListGroup variant="flush" as="ul" className={"flex-grow-1"}> | 27 | <ListGroup variant="flush" as="ul" className={"flex-grow-1"}> |
| 29 | {frames.length > 0 ? ( | 28 | {frames.length > 0 ? ( |
