mirror of https://github.com/MaxLeiter/Drift
fix sign out, theme switch, auth provider icons
parent
55e19381a7
commit
d0a73a7cbc
@ -1,8 +1,9 @@
|
||||
import { THEME_COOKIE } from "@lib/constants"
|
||||
import { Cookies } from "react-cookie"
|
||||
|
||||
const cookies = new Cookies()
|
||||
|
||||
export function setDriftTheme(theme: string, setter: (theme: string) => void) {
|
||||
setter(theme)
|
||||
const cookies = new Cookies()
|
||||
cookies.set(THEME_COOKIE, theme, { path: "/" })
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue