34 lines
948 B
TypeScript
34 lines
948 B
TypeScript
import React from 'react';
|
|
import '@radix-ui/themes/styles.css';
|
|
import { Theme } from '@radix-ui/themes';
|
|
import { ToastContainer } from 'react-toastify';
|
|
import 'react-toastify/dist/ReactToastify.css';
|
|
import { BrowserRouter as Router, Routes, Route } from 'react-router-dom';
|
|
|
|
import Home from './src/pages/Home';
|
|
import NotFound from './src/pages/NotFound';
|
|
|
|
const App: React.FC = () => {
|
|
return (
|
|
<Theme appearance="inherit" radius="large" scaling="100%">
|
|
<Router>
|
|
<main className="min-h-screen font-inter">
|
|
<Routes>
|
|
<Route path="/" element={<Home />} />
|
|
<Route path="*" element={<NotFound />} />
|
|
</Routes>
|
|
<ToastContainer
|
|
position="top-right"
|
|
autoClose={3000}
|
|
newestOnTop
|
|
closeOnClick
|
|
pauseOnHover
|
|
theme="dark"
|
|
/>
|
|
</main>
|
|
</Router>
|
|
</Theme>
|
|
);
|
|
}
|
|
|
|
export default App; |