Skip to content

Commit

Permalink
๐Ÿ”€ Merge: ์ตœ์‹  main ๋ธŒ๋žœ์น˜์™€ ๋ณ‘ํ•ฉ
Browse files Browse the repository at this point in the history
  • Loading branch information
Bersk3r committed May 21, 2024
2 parents ac92565 + 6606286 commit b234980
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 18 deletions.
11 changes: 11 additions & 0 deletions src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ import { Outlet, useLocation } from 'react-router-dom';
import Header from '@/components/Header';
import { Background } from '@/components/Background';

import { ToastContainer } from 'react-toastify';
import 'react-toastify/dist/ReactToastify.css';

const App = () => {
const location = useLocation();
const isListOrMyPage =
Expand All @@ -14,6 +17,14 @@ const App = () => {
<Background>
{isListOrMyPage && <Header />}
<Outlet />
<ToastContainer
autoClose={1500}
style={{
margin: '50px 30px 0 0',
padding: '0 16px',
}}
position="top-right"
/>
</Background>
);
};
Expand Down
12 changes: 4 additions & 8 deletions src/components/Footer/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,10 @@ const Footer = () => {
<span>
<span>6๊ธฐ 2์กฐ </span>Fandom-K
</span>
<div>
<img
src={GithubLogo}
width={20}
onClick={() =>
window.open('https://github.com/sprint6-part2/fandom-k')
}
/>
<div
onClick={() => window.open('https://github.com/sprint6-part2/fandom-k')}
>
<img src={GithubLogo} width={20} />
<span>GitHub</span>
</div>
</footer>
Expand Down
10 changes: 0 additions & 10 deletions src/main.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,12 @@ import ReactDOM from 'react-dom/client';
import router from './router';

import { RouterProvider } from 'react-router-dom';
import { ToastContainer } from 'react-toastify';

import 'reset-css';
import './styles/normalize.scss';
import 'react-toastify/dist/ReactToastify.css';

ReactDOM.createRoot(document.getElementById('root')).render(
<React.StrictMode>
<RouterProvider router={router} />
<ToastContainer
autoClose={1500}
style={{
margin: '50px 8px 0 0',
padding: '0 16px',
}}
position="top-right"
/>
</React.StrictMode>,
);

0 comments on commit b234980

Please sign in to comment.