refactor: use relative TS path
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { useEffect } from 'react';
|
||||
|
||||
import { ConfigType } from '../types/config';
|
||||
import { ConfigType } from '~/types/config';
|
||||
import { useConfigContext } from './provider';
|
||||
import { useConfigStore } from './store';
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { ReactNode, createContext, useContext, useEffect, useState } from 'react';
|
||||
import { shallow } from 'zustand/shallow';
|
||||
|
||||
import { useColorTheme } from '../tools/color';
|
||||
import { ConfigType } from '../types/config';
|
||||
import { useColorTheme } from '~/tools/color';
|
||||
import { ConfigType } from '~/types/config';
|
||||
import { useConfigStore } from './store';
|
||||
|
||||
export type ConfigContextType = {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { createWithEqualityFn } from 'zustand/traditional';
|
||||
import { trcpProxyClient } from '~/utils/api';
|
||||
|
||||
import { ConfigType } from '../types/config';
|
||||
import { ConfigType } from '~/types/config';
|
||||
|
||||
export const useConfigStore = createWithEqualityFn<UseConfigStoreType>(
|
||||
(set, get) => ({
|
||||
|
||||
Reference in New Issue
Block a user