Skip to content

Commit

Permalink
chore: fix store build issue
Browse files Browse the repository at this point in the history
  • Loading branch information
shafin-deriv committed Sep 10, 2024
1 parent 21fe0f1 commit 782730c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ const config: Config = {
'^@/components/(.*)$': '<rootDir>/src/components/$1',
'^@/constants/(.*)$': '<rootDir>/src/constants/$1',
'^@/hooks/(.*)$': '<rootDir>/src/hooks/$1',
'^@/Stores/(.*)$': '<rootDir>/src/stores/$1',
'^@/stores/(.*)$': '<rootDir>/src/stores/$1',
},

// An array of regexp pattern strings, matched against all module paths before considered 'visible' to the module loader
Expand Down
1 change: 1 addition & 0 deletions rsbuild.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ export default defineConfig({
'@/hooks': path.resolve(__dirname, './src/hooks'),
'@/utils': path.resolve(__dirname, './src/utils'),
'@/constants': path.resolve(__dirname, './src/constants'),
'@/stores': path.resolve(__dirname, './src/stores'),
},
},
output: {
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/useStore.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { createContext, useContext, useEffect, useRef, useState } from 'react';
import { api_base } from '@/external/bot-skeleton';
import RootStore from '@/Stores/root-store';
import RootStore from '@/stores/root-store';
import { TWebSocket } from '@/Types';
import { Loader } from '@deriv-com/ui';
import Bot from '../external/bot-skeleton/scratch/dbot';
Expand Down

0 comments on commit 782730c

Please sign in to comment.