refactor: use relative TS path

This commit is contained in:
Manuel
2023-09-03 16:23:40 +02:00
parent a2738111b5
commit c14fad680d
85 changed files with 162 additions and 162 deletions

View File

@@ -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';

View File

@@ -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 = {

View File

@@ -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) => ({