Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/ui/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ export const THEMES = ["light", "dark", "system"] as const
export type Theme = (typeof THEMES)[number]

export const THEME_STORAGE_KEY = "init-theme"
export const MOBILE_BREAKPOINT = 768
2 changes: 1 addition & 1 deletion packages/ui/src/hooks/use-mobile.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { MOBILE_BREAKPOINT } from "@init/utils/constants"
import { MOBILE_BREAKPOINT } from "@init/ui/constants"
import { useEffect, useState } from "react"

export function useIsMobile() {
Expand Down
1 change: 0 additions & 1 deletion packages/utils/src/constants/breakpoint.ts

This file was deleted.

2 changes: 1 addition & 1 deletion packages/utils/src/constants/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export * from "#constants/app.ts"
export * from "#constants/asset.ts"
export * from "#constants/breakpoint.ts"