-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
309a963
commit 79f26f8
Showing
20 changed files
with
546 additions
and
334 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,25 @@ | ||
import { useEffect } from 'react'; | ||
import { useDispatch } from 'react-redux'; | ||
import { ToastContainer } from 'react-toastify'; | ||
import styled from 'styled-components'; | ||
import { Toaster } from 'sonner'; | ||
|
||
import { loadUserThunk } from '../redux/authSlice'; | ||
import NavbarComponent from './Navbar'; | ||
import { Flowbite } from 'flowbite-react'; | ||
import { customTheme } from './ui/theme'; | ||
|
||
const Wrapper = styled.div` | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: center; | ||
background-color: white; | ||
color: black; | ||
`; | ||
const Main = styled.div` | ||
overflow: hidden; | ||
`; | ||
import { Dispatch } from '@reduxjs/toolkit'; | ||
|
||
export default function Layout({ children }: any) { | ||
const dispatch = useDispatch<any>(); | ||
const dispatch = useDispatch<Dispatch<any>>(); | ||
useEffect(() => { | ||
dispatch(loadUserThunk()); | ||
}, [dispatch]); | ||
return ( | ||
<Flowbite theme={{ theme: customTheme }}> | ||
<Wrapper> | ||
<ToastContainer /> | ||
<Toaster /> | ||
<div className="flex flex-col min-h-screen bg-gray-100"> | ||
<NavbarComponent /> | ||
<Main>{children}</Main> | ||
</Wrapper> | ||
<div>{children}</div> | ||
</div> | ||
</Flowbite> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
79f26f8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
kitap-kurdu-bx87 – ./
kitap-kurdu-bx87-git-main-sayinmehmet47.vercel.app
kitap-kurdu-bx87.vercel.app
kitap-kurdu-bx87-sayinmehmet47.vercel.app