Skip to content

Commit

Permalink
Subjet: Added views and components.
Browse files Browse the repository at this point in the history
  • Loading branch information
iamibadd committed Sep 28, 2022
1 parent da2c884 commit 5599042
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
File renamed without changes.
4 changes: 2 additions & 2 deletions src/routes/app-routes/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import React, {lazy, Suspense} from 'react';
import {Navigate, Route, Routes} from "react-router-dom";
import {APP_PREFIX_PATH, AUTH_PREFIX_PATH} from "../../config/app-config";

const Dashboard = lazy(() => import( '../../components/app/dashboard'));
const PageNotFound = lazy(() => import( '../../components/utils/page-404'));
const Dashboard = lazy(() => import( '../../views/app/dashboard'));
const PageNotFound = lazy(() => import( '../../components/util-components/page-404'));

const routes = [
{
Expand Down
4 changes: 2 additions & 2 deletions src/routes/auth-routes/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import React, {lazy, Suspense} from 'react';
import {Navigate, Route, Routes} from "react-router-dom";
import {APP_PREFIX_PATH, AUTH_PREFIX_PATH} from "../../config/app-config";

const Login = lazy(() => import( '../../components/auth/login'));
const PageNotFound = lazy(() => import( '../../components/utils/page-404'));
const Login = lazy(() => import( '../../views/auth/login'));
const PageNotFound = lazy(() => import( '../../components/util-components/page-404'));

const routes = [
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import React from 'react';
import {useDispatch, useSelector} from "react-redux";
import {logout} from '../../redux/actions';
import {logout} from '../../../redux/actions';
import {useNavigate} from "react-router-dom";

const Dashboard = () => {
const Index = () => {
const {auth} = useSelector(state => state);
const {user} = auth;
const dispatch = useDispatch();
Expand All @@ -20,4 +20,4 @@ const Dashboard = () => {
);
};

export default Dashboard;
export default Index;
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import React, {useState} from 'react';
import {useDispatch} from "react-redux";
import {useNavigate} from 'react-router-dom';
import {login} from '../../redux/actions';
import {login} from '../../../redux/actions';

const Login = () => {
const Index = () => {
const [user, setUser] = useState({});
const dispatch = useDispatch();
const navigate = useNavigate();
Expand Down Expand Up @@ -31,4 +31,4 @@ const Login = () => {
);
};

export default Login;
export default Index;

0 comments on commit 5599042

Please sign in to comment.