mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Fix label import for old location, apply the theme on the page
This commit is contained in:
parent
2c15516d96
commit
edc5d6ad97
1 changed files with 4 additions and 2 deletions
|
|
@ -14,9 +14,9 @@ import { useGetLabelsQuery } from '../../lib/networking/queries/useGetLabelsQuer
|
|||
import { createLabelMutation } from '../../lib/networking/mutations/createLabelMutation'
|
||||
import { updateLabelMutation } from '../../lib/networking/mutations/updateLabelMutation'
|
||||
import { deleteLabelMutation } from '../../lib/networking/mutations/deleteLabelMutation'
|
||||
import { isDarkTheme } from '../../lib/themeUpdater'
|
||||
import { applyStoredTheme, isDarkTheme } from '../../lib/themeUpdater'
|
||||
import { showErrorToast, showSuccessToast } from '../../lib/toastHelpers'
|
||||
import { Label } from '../../lib/networking/fragments/labelFragment'
|
||||
import { Label } from '../../lib/networking/queries/useGetLabelsQuery'
|
||||
import { StyledText } from '../../components/elements/StyledText'
|
||||
import {
|
||||
ArrowClockwise,
|
||||
|
|
@ -162,6 +162,8 @@ export default function LabelsPage(): JSX.Element {
|
|||
const [windowWidth, setWindowWidth] = useState<number>(0)
|
||||
const breakpoint = 768
|
||||
|
||||
applyStoredTheme(false)
|
||||
|
||||
useEffect(() => {
|
||||
const handleResizeWindow = () => setWindowWidth(window.innerWidth)
|
||||
if (windowWidth === 0) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue