Skip to content

Commit

Permalink
fix:working ?
Browse files Browse the repository at this point in the history
  • Loading branch information
Zalk0 committed Oct 23, 2023
1 parent a037c7f commit fd0d983
Show file tree
Hide file tree
Showing 7 changed files with 38 additions and 53 deletions.
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ PORT=8081
BROWSER=none


# App dotenv. These variables are used DURING react build.
# Page dotenv. These variables are used DURING react build.
# For this reason, the values below will only be used with
# `pnpm dev`. For values used along with `pnpm build`, check
# the Dockerfile (docker build arguments)
Expand Down
42 changes: 0 additions & 42 deletions src/app.tsx

This file was deleted.

6 changes: 0 additions & 6 deletions src/app/page.js

This file was deleted.

File renamed without changes.
35 changes: 35 additions & 0 deletions src/app/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
'use client'
import React from 'react';
import { Provider } from 'react-redux';
import 'react-toastify/dist/ReactToastify.css';
import 'moment/locale/fr';
import './page.scss';

import Index from '../routes';
import Sell from '../routes/sell';

import store from '../store';
import Tv from '../routes/tv';
import Preparation from '../routes/preparation';
import Items from '../routes/items';
import LoginRouter from '../components/loginRouter';
import { Route } from 'react-router';
import moment from 'moment';

moment.locale('fr');

const App = () => {
return (
<Provider store={store}>
<LoginRouter>
<Route exact path="/" Component={Index} />
<Route path="/sell" Component={Sell} />
<Route path="/preparation" Component={Preparation} />
<Route path="/tv" Component={Tv} />
<Route path="/items" Component={Items} />
</LoginRouter>
</Provider>
);
};

export default App;
2 changes: 0 additions & 2 deletions src/components/modals/modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ interface ModalProps {
children: React.ReactNode;
}

ModalComponent.setAppElement('#root');

const Modal = ({ isOpen, className, children }: ModalProps) => {
return (
<ModalComponent isOpen={isOpen} className={`modal ${className ? className : ''}`} overlayClassName="overlay">
Expand Down
4 changes: 2 additions & 2 deletions src/index.tsx.old
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import ReactDOM from 'react-dom';
import App from './app';
import Page from './app';

ReactDOM.render(<App />, document.getElementById('root'));
ReactDOM.render(<Page />, document.getElementById('root'));

0 comments on commit fd0d983

Please sign in to comment.