Skip to content

Commit

Permalink
Merge pull request #40 from reedoooo/refine/logicandstyles
Browse files Browse the repository at this point in the history
new images
  • Loading branch information
reedoooo authored May 3, 2024
2 parents 9c86006 + 312639d commit f114a3d
Show file tree
Hide file tree
Showing 27 changed files with 91 additions and 432 deletions.
89 changes: 0 additions & 89 deletions cleanup/ActionButton.jsx

This file was deleted.

76 changes: 0 additions & 76 deletions cleanup/ChartConfigs.jsx

This file was deleted.

142 changes: 0 additions & 142 deletions cleanup/MainContentSection.jsx

This file was deleted.

Binary file added public/images/pages/cart-checkout.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes
Binary file added public/images/pages/homepage.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/pages/profile-home.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/pages/store-home.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 1 addition & 17 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,26 +4,10 @@ import './assets/css/index.css';
import './assets/css/card.css';
import './assets/css/page.css';
import Main from './Main';
import { useMode, ConfiguratorProvider } from './context';
import { ThemeProvider } from 'styled-components';
import { CssBaseline, GlobalStyles } from '@mui/material';
import { ParallaxProvider } from 'react-scroll-parallax';

// ==============================|| APP ||============================== //

const App = () => {
const { theme } = useMode();
return (
<ThemeProvider theme={theme}>
<CssBaseline theme={theme} />
<GlobalStyles />
<ParallaxProvider>
<ConfiguratorProvider>
<Main />
</ConfiguratorProvider>
</ParallaxProvider>
</ThemeProvider>
);
return <Main />;
};

export default App;
6 changes: 3 additions & 3 deletions src/Main.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ import React, { Suspense, lazy, useEffect } from 'react';
import { Route, Routes } from 'react-router-dom';
import PrivateRoute from './layout/navigation/PrivateRoute.jsx';
import LoginDialog from './pages/LoginDialog.jsx';
import { useConfiguratorContext, useMode } from './context';
import PageLayout from './layout/REUSABLE_COMPONENTS/layout-utils/PageLayout.jsx';
import Navigation from './layout/navigation/Navigation.jsx';
import Configurator from './layout/REUSABLE_COMPONENTS/Configurator/index.jsx';
import { CSSTransition, TransitionGroup } from 'react-transition-group';
import LoadingOverlay from './layout/REUSABLE_COMPONENTS/system-utils/LoadingOverlay.jsx';
import useManageCookies from './context/hooks/useManageCookies.jsx';
import { ROUTE_CONFIG } from './data/route-config.jsx';
import { useConfigurator } from 'context/hooks/useConfigurator.jsx';

// ==============================|| MAIN ROUTING ||============================== //

Expand All @@ -19,8 +19,8 @@ const LazyRoute = ({ componentName, ...rest }) => {
};
const Main = () => {
const { getCookie } = useManageCookies();
const { isLoggedIn, userId } = getCookie(['isLoggedIn', 'userId']);
const { isConfiguratorOpen } = useConfiguratorContext();
const { isLoggedIn } = getCookie(['isLoggedIn']);
const { isConfiguratorOpen } = useConfigurator();
return (
<PageLayout
sx={{
Expand Down
Loading

0 comments on commit f114a3d

Please sign in to comment.