Skip to content

Commit

Permalink
Merge pull request #56 from CS3219-AY2425S1/54-fe-routing-home-fix
Browse files Browse the repository at this point in the history
Fix routing to home page from navbar issue
  • Loading branch information
yunruu authored Sep 22, 2024
2 parents 8a223fa + 3508094 commit f4b7855
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion frontend/components/layout/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ export default function RootLayout({
}>) {
const [isAuth, setIsAuth] = useState(false)
const pathname = usePathname()
console.log(pathname)
useEffect(() => {
if (pathname == '/auth') {
setIsAuth(true)
Expand Down
6 changes: 3 additions & 3 deletions frontend/styles/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
@tailwind utilities;

:root {
--background: #f5f5f5;
--foreground: #171717;

--theme-900: #3b0764;
--theme-600: #7f57c2;
--theme-400: #c084fc;
Expand All @@ -26,6 +23,9 @@

--orange-pri: #fb923c;
--orange-sec: #ffedd5;

--background: #fff;
--foreground: var(--slate-700);
}

pre,
Expand Down

0 comments on commit f4b7855

Please sign in to comment.