Skip to content

Commit

Permalink
fix: react warning regression fix
Browse files Browse the repository at this point in the history
Signed-off-by: Nick Mitchell <[email protected]>
  • Loading branch information
starpit committed Jan 23, 2025
1 parent cab84d7 commit d2fe226
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pdl-live-react/src/Page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ type Props = PropsWithChildren<{

export default function PDLPage({ breadcrumb1, breadcrumb2, children }: Props) {
const [darkMode, setDarkMode] = useState(getDarkModeUserSetting())
useEffect(() => setDarkModeForSession(darkMode), [])
useEffect(() => setDarkModeForSession(getDarkModeUserSetting()), [])

/** Manage the drawer that slides in from the right */
const [drawerContent, setDrawerContent] = useState<
Expand Down

0 comments on commit d2fe226

Please sign in to comment.