mirror of
https://github.com/rjNemo/MERN_sample_app
synced 2026-06-12 03:26:40 +00:00
fix pages exports
This commit is contained in:
parent
47fa15e229
commit
be51487c36
9 changed files with 21 additions and 39 deletions
|
|
@ -1,15 +1,13 @@
|
||||||
import React from "react";
|
import React from "react";
|
||||||
import { Route, Switch } from "react-router-dom";
|
import { Route, Switch } from "react-router-dom";
|
||||||
import * as ROUTES from "../../constants/routes";
|
import * as ROUTES from "../../constants/routes";
|
||||||
import {
|
import AppPage from "../../pages/App";
|
||||||
LandingPage,
|
import LandingPage from "../../pages/Landing";
|
||||||
SignUpPage,
|
import SignUpPage from "../../pages/SignUp";
|
||||||
SignInPage,
|
import SignInPage from "../../pages/SignIn";
|
||||||
PasswordForgetPage,
|
import PasswordForgetPage from "../../pages/PasswordForget";
|
||||||
AppPage,
|
import AccountPage from "../../pages/Account";
|
||||||
AccountPage,
|
import AdminPage from "../../pages/Admin";
|
||||||
AdminPage,
|
|
||||||
} from "../../pages/index";
|
|
||||||
|
|
||||||
export default function MainRouter() {
|
export default function MainRouter() {
|
||||||
return (
|
return (
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
import React from "react";
|
import React from "react";
|
||||||
import { Container } from "reactstrap";
|
import { Container } from "reactstrap";
|
||||||
import ItemModal from "../ItemModal";
|
import ItemModal from "../../components/ItemModal";
|
||||||
import List from "../List";
|
import List from "../../components/List";
|
||||||
|
|
||||||
export default function AccountPage() {
|
export default function AccountPage() {
|
||||||
return (
|
return (
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
import React from "react";
|
import React from "react";
|
||||||
import { Container } from "reactstrap";
|
import { Container } from "reactstrap";
|
||||||
import ItemModal from "../ItemModal";
|
import ItemModal from "../../components/ItemModal";
|
||||||
import List from "../List";
|
import List from "../../components/List";
|
||||||
|
|
||||||
export default function AdminPage() {
|
export default function AdminPage() {
|
||||||
return (
|
return (
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
import React from "react";
|
import React from "react";
|
||||||
import { Container } from "reactstrap";
|
import { Container } from "reactstrap";
|
||||||
import ItemModal from "../ItemModal";
|
import ItemModal from "../../components/ItemModal";
|
||||||
import List from "../List";
|
import List from "../../components/List";
|
||||||
|
|
||||||
export default function AppPage() {
|
export default function AppPage() {
|
||||||
return (
|
return (
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
import React from "react";
|
import React from "react";
|
||||||
import { Container } from "reactstrap";
|
import { Container } from "reactstrap";
|
||||||
import ItemModal from "../ItemModal";
|
import ItemModal from "../../components/ItemModal";
|
||||||
import List from "../List";
|
import List from "../../components/List";
|
||||||
|
|
||||||
export default function LandingPage() {
|
export default function LandingPage() {
|
||||||
return (
|
return (
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
import React from "react";
|
import React from "react";
|
||||||
import { Container } from "reactstrap";
|
import { Container } from "reactstrap";
|
||||||
import ItemModal from "../ItemModal";
|
import ItemModal from "../../components/ItemModal";
|
||||||
import List from "../List";
|
import List from "../../components/List";
|
||||||
|
|
||||||
export default function PasswordForgetPage() {
|
export default function PasswordForgetPage() {
|
||||||
return (
|
return (
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
import React from "react";
|
import React from "react";
|
||||||
import { Container } from "reactstrap";
|
import { Container } from "reactstrap";
|
||||||
import ItemModal from "../ItemModal";
|
import ItemModal from "../../components/ItemModal";
|
||||||
import List from "../List";
|
import List from "../../components/List";
|
||||||
|
|
||||||
export default function SignInPage() {
|
export default function SignInPage() {
|
||||||
return (
|
return (
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
import React from "react";
|
import React from "react";
|
||||||
import { Container } from "reactstrap";
|
import { Container } from "reactstrap";
|
||||||
import ItemModal from "../ItemModal";
|
import ItemModal from "../../components/ItemModal";
|
||||||
import List from "../List";
|
import List from "../../components/List";
|
||||||
|
|
||||||
export default function SignUpPage() {
|
export default function SignUpPage() {
|
||||||
return (
|
return (
|
||||||
|
|
|
||||||
|
|
@ -1,16 +0,0 @@
|
||||||
import AppPage from "./App";
|
|
||||||
import LandingPage from "./Landing"
|
|
||||||
import SignUpPage from "./SignUp"
|
|
||||||
import SignInPage from "./SignIn"
|
|
||||||
import PasswordForgetPage from "./PasswordForget"
|
|
||||||
import AccountPage from "./Account"
|
|
||||||
import AdminPage from "./Admin"
|
|
||||||
|
|
||||||
|
|
||||||
export const AppPage
|
|
||||||
export const LandingPage
|
|
||||||
export const SignUpPage
|
|
||||||
export const SignInPage
|
|
||||||
export const PasswordForgetPage
|
|
||||||
export const AccountPage
|
|
||||||
export const AdminPage
|
|
||||||
Loading…
Reference in a new issue