Use next-basics package.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import create from 'zustand';
|
||||
import { DEFAULT_LOCALE, DEFAULT_THEME, LOCALE_CONFIG, THEME_CONFIG } from 'lib/constants';
|
||||
import { getItem } from 'lib/web';
|
||||
import { getItem } from 'next-basics';
|
||||
|
||||
const initialState = {
|
||||
locale: getItem(LOCALE_CONFIG) || DEFAULT_LOCALE,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import create from 'zustand';
|
||||
import { DASHBOARD_CONFIG, DEFAULT_WEBSITE_LIMIT } from 'lib/constants';
|
||||
import { getItem, setItem } from 'lib/web';
|
||||
import { getItem, setItem } from 'next-basics';
|
||||
|
||||
export const initialState = {
|
||||
showCharts: true,
|
||||
|
||||
@@ -2,7 +2,7 @@ import create from 'zustand';
|
||||
import produce from 'immer';
|
||||
import semver from 'semver';
|
||||
import { CURRENT_VERSION, VERSION_CHECK, UPDATES_URL } from 'lib/constants';
|
||||
import { getItem } from 'lib/web';
|
||||
import { getItem } from 'next-basics';
|
||||
|
||||
const initialState = {
|
||||
current: CURRENT_VERSION,
|
||||
|
||||
Reference in New Issue
Block a user