Skip to content

Commit

Permalink
Merge pull request #33 from pesto-students/dev
Browse files Browse the repository at this point in the history
File structure restructure
  • Loading branch information
boaloysius authored Aug 7, 2023
2 parents 22f5baf + d75171c commit 5d5bf07
Show file tree
Hide file tree
Showing 79 changed files with 230 additions and 396 deletions.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
1 change: 0 additions & 1 deletion public/vite.svg

This file was deleted.

7 changes: 1 addition & 6 deletions src/App/App.tsx → src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
import { useEffect } from 'react';
import { styled, CssBaseline } from '@mui/material';
import { useRoutes } from 'react-router-dom';
import { LocalizationProvider } from '@mui/x-date-pickers';
import { AdapterDateFns } from '@mui/x-date-pickers/AdapterDateFns';
import { useAppDispatch, useAppSelector } from 'App/hooks';
import { onAuthStateChangedListener } from 'App/firebase/firebaseConfig';
import { saveFirebaseUser } from 'features/auth/authSlice';
import { SnackbarProvider, MaterialDesignContent } from 'notistack';

import router from './router';
import ThemeProvider from './theme/ThemeProvider';

Expand All @@ -22,8 +19,6 @@ const StyledSnackbarContent = styled(MaterialDesignContent)(({ theme }) => ({
const App = () => {
const content = useRoutes(router);

const dispatch = useAppDispatch();

return (
<SnackbarProvider
Components={{
Expand Down
5 changes: 0 additions & 5 deletions src/App/assets/avatar-1.svg

This file was deleted.

Binary file removed src/App/assets/img.png
Binary file not shown.
Binary file removed src/App/assets/logo.png
Binary file not shown.
112 changes: 0 additions & 112 deletions src/App/router.tsx

This file was deleted.

Empty file removed src/api/api.tsx
Empty file.
172 changes: 0 additions & 172 deletions src/components/temp/tempDrawer.tsx

This file was deleted.

4 changes: 2 additions & 2 deletions src/features/Board/Filters/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ import { debounce, xor } from 'lodash';

import { ClearAll, Filters } from './Styles';

import TextFieldWrapper from 'shared/components/TextFieldWrapper';
import { useAppDispatch, useAppSelector } from 'App/hooks';
import TextFieldWrapper from 'ui/TextFieldWrapper';
import { useAppDispatch, useAppSelector } from 'hooks';
import {
setClearAll,
setMyOnly,
Expand Down
2 changes: 1 addition & 1 deletion src/features/Board/Lists/List/Issue/Issue.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import {
Assignees,
AssigneeAvatar,
} from './Styles';
import { useAppSelector } from 'App/hooks';
import { useAppSelector } from 'hooks';
import { CardPriority } from 'shared/constants/card';
import { useNavigate } from 'react-router-dom';

Expand Down
4 changes: 2 additions & 2 deletions src/features/Board/Lists/Lists.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import { CardStatus } from 'shared/constants/card';
import List from './List/List';
import { Lists } from './Styles';
import React, { useEffect, useState } from 'react';
import { useAppDispatch, useAppSelector } from 'App/hooks';
import { useAppDispatch, useAppSelector } from 'hooks';

import { Icard } from 'App/types';
import { Icard } from 'types';
import { Ifilters } from 'features/Board/types';
import type { DropResult } from 'react-beautiful-dnd';
import { useGetCardsQuery } from 'features/card/cardApiSlice';
Expand Down
10 changes: 5 additions & 5 deletions src/features/Board/ProjectBoard.tsx
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
import React, { useEffect } from 'react';

import Breadcrumbs from 'shared/components/Breadcrumbs';
import Breadcrumbs from 'ui/Breadcrumbs';

import PageHeader from 'shared/components/PageHeader/PageHeader';
import PageHeader from 'ui/PageHeader/PageHeader';
import Filters from './Filters';
import { useAppSelector } from 'App/hooks';
import { useAppSelector } from 'hooks';

import type { IProjectBoardProps as Props } from './types';
import PageError from 'shared/components/PageError';
import PageError from 'ui/PageError';
import ProjectBoardLists from './Lists/Lists';
import { useGetProjectQuery } from 'features/project/projectApiSlice';
import { useGetCardsQuery } from 'features/card/cardApiSlice';
import GlobalLoader from 'components/GlobalLoader/GlobalLoader';
import GlobalLoader from 'ui/GlobalLoader/GlobalLoader';

const ProjectBoard: React.FC<Props> = () => {
const { currentProject } = useAppSelector((state) => state.project);
Expand Down
2 changes: 1 addition & 1 deletion src/features/Board/types.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Iproject, Iuser } from 'App/types';
import { Iproject, Iuser } from 'types';

export interface Iboard {
title: string;
Expand Down
10 changes: 5 additions & 5 deletions src/features/auth/Login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ import {
FormControlLabel,
} from '@mui/material';
import { Visibility, VisibilityOff } from '@mui/icons-material';
import ButtonWrapper from 'shared/components/ButtonWrapper';
import TextFieldWrapper from 'shared/components/TextFieldWrapper';
import LinkWrapper from 'shared/components/LinkWrapper';
import GenericErrorModal from 'shared/components/Modal/GenericErrorModal';
import ButtonWrapper from 'ui/ButtonWrapper';
import TextFieldWrapper from 'ui/TextFieldWrapper';
import LinkWrapper from 'ui/LinkWrapper';
import GenericErrorModal from 'ui/Modal/GenericErrorModal';
import ResetPassword from './ResetPassword';
import { useAppDispatch, useAppSelector } from 'App/hooks';
import { useAppDispatch, useAppSelector } from 'hooks';
import { userLogin } from './authAction';
import { setError as setAuthError, setCredentials } from './authSlice';
import { useLoginMutation } from './authApiSlice';
Expand Down
Loading

0 comments on commit 5d5bf07

Please sign in to comment.