Untitled

mail@pastecode.io avatar
unknown
plain_text
7 months ago
1.6 kB
1
Indexable
Never
import { Route, Routes } from 'react-router-dom';
import Login from './pages/Login/Login';
import Recipes from './pages/Recipes/Recipes';
import './App.css';
import 'bootstrap/dist/css/bootstrap.min.css';
import Layout from './componentes/Layout';
import Profile from './pages/Profile/Profile';
import Drinks from './pages/Drinks/Drinks';
import RecipeDetails from './pages/Recipes/RecipeDetails';
import DoneRecipes from './pages/Recipes/DoneRecipes';
import FavoriteRecipes from './pages/Recipes/FavoriteRecipes';
import NotFound from './pages/NotFound';

function App() {
  return (
    <div className="recipesAppMain">
      <Routes>
        <Route path="/" element={ <Login /> } />
        <Route element={ <Layout /> }>
          <Route path="/meals" element={ <Recipes /> } />
          <Route path="/drinks" element={ <Drinks /> } />
          <Route path="/profile" element={ <Profile /> } />
          <Route path="/meals/:id_da_receita" element={ <RecipeDetails /> } />
          <Route path="/drinks/:id_da_receita" element={ <RecipeDetails /> } />
          <Route path="/done-recipes" element={ <DoneRecipes /> } />
          <Route path="favorite-recipes" element={ <FavoriteRecipes /> } />
          <Route path="/*" element={ <NotFound /> } />
        </Route>
        <Route path="/meals/:id-da-receita" element={ <Recipes /> } />
        <Route path="/meals/:id-da-receita/in-progress" element={ <Recipes /> } />
        <Route path="/drinks/:id-da-receita" element={ <Drinks /> } />
        <Route path="/drinks/:id-da-receita/in-progress" element={ <Drinks /> } />
      </Routes>
    </div>
  );
}

export default App;