Skip to content

Commit

Permalink
refactor: combine core and app dirs
Browse files Browse the repository at this point in the history
  • Loading branch information
mairisb committed Oct 10, 2024
1 parent 33f79ee commit 921ea88
Show file tree
Hide file tree
Showing 18 changed files with 11 additions and 11 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion packages/client/src/app/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { ThemeProvider } from '@emotion/react';
import { Container, useMediaQuery } from '@mui/material';
import { useEffect } from 'react';
import { useRoutes } from 'react-router-dom';
import { useAppDispatch } from '../core/hooks/app-dispatch.hook';
import { useAppDispatch } from './hooks/app-dispatch.hook';
import { authThunks } from '../features/auth/auth.thunks';
import { appRoutes } from './app.routes';
import { NavigationBar } from './components/navigation-bar/navigation-bar';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
import React from 'react';
import { useSelector } from 'react-redux';
import { Link } from 'react-router-dom';
import { useAppDispatch } from '../../../core/hooks/app-dispatch.hook';
import { useAppDispatch } from '../../hooks/app-dispatch.hook';
import { authSelectors } from '../../../features/auth/auth.selectors';
import { authThunks } from '../../../features/auth/auth.thunks';

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion packages/client/src/app/pages/page.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { useEffect } from 'react';
import { useSelector } from 'react-redux';
import { useNavigate } from 'react-router-dom';
import { config } from '../../core/config';
import { config } from '../config';
import { authSelectors } from '../../features/auth/auth.selectors';

export interface PageProps extends React.PropsWithChildren {
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions packages/client/src/features/auth/auth.api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import {
RegisterRequest,
UserDto,
} from '@tspark/common';
import { axiosBaseQuery } from '../../core/api/axios-base-query';
import { config } from '../../core/config';
import { axiosBaseQuery } from '../../app/api/axios-base-query';
import { config } from '../../app/config';

export const authApi = createApi({
reducerPath: 'authApi',
Expand Down
2 changes: 1 addition & 1 deletion packages/client/src/features/auth/auth.selectors.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { createSelector } from '@reduxjs/toolkit';
import { RootState } from '../../core/store';
import { RootState } from '../../app/store';

const selectAuth = (state: RootState) => state.auth;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Stack } from '@mui/material';
import { Link } from 'react-router-dom';
import { useNotification } from '../../../../app/hooks/notification.hook';
import { Page } from '../../../../app/pages/page';
import { useAppDispatch } from '../../../../core/hooks/app-dispatch.hook';
import { useAppDispatch } from '../../../../app/hooks/app-dispatch.hook';
import { authThunks } from '../../auth.thunks';
import {
LoginForm,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useNotification } from '../../../../app/hooks/notification.hook';
import { Page } from '../../../../app/pages/page';
import { useAppDispatch } from '../../../../core/hooks/app-dispatch.hook';
import { useAppDispatch } from '../../../../app/hooks/app-dispatch.hook';
import { authThunks } from '../../auth.thunks';
import {
RegisterForm,
Expand Down
4 changes: 2 additions & 2 deletions packages/client/src/features/card/card.api.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { createApi } from '@reduxjs/toolkit/query/react';
import { CardDto } from '@tspark/common';
import { axiosBaseQuery } from '../../core/api/axios-base-query';
import { config } from '../../core/config';
import { axiosBaseQuery } from '../../app/api/axios-base-query';
import { config } from '../../app/config';

export const cardApi = createApi({
reducerPath: 'cardApi',
Expand Down
2 changes: 1 addition & 1 deletion packages/client/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { Provider } from 'react-redux';
import { BrowserRouter } from 'react-router-dom';
import { App } from './app/app';
import { NotificationProvider } from './app/components/notifications/NotificationProvider';
import { setupStore } from './core/store';
import { setupStore } from './app/store';

const root = ReactDOM.createRoot(
document.getElementById('root') as HTMLElement,
Expand Down

0 comments on commit 921ea88

Please sign in to comment.