diff options
| author | 2024-09-04 10:27:24 +0200 | |
|---|---|---|
| committer | 2024-09-04 10:27:24 +0200 | |
| commit | a087494f6809a7a8ea8e6c27a105d8c8f0f3839e (patch) | |
| tree | 617c0dbd168d6e340923dd17b07cc8239787e196 /src/components/Frames/Frames.tsx | |
| parent | fe61544bafafc8b4de78cc71cb641af2dfb7b72d (diff) | |
| download | client-a087494f6809a7a8ea8e6c27a105d8c8f0f3839e.tar.gz client-a087494f6809a7a8ea8e6c27a105d8c8f0f3839e.tar.bz2 client-a087494f6809a7a8ea8e6c27a105d8c8f0f3839e.zip | |
Updated the libraries
Diffstat (limited to 'src/components/Frames/Frames.tsx')
| -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 ? ( |
