Skip to content

Commit

Permalink
OV-1: - header from app
Browse files Browse the repository at this point in the history
  • Loading branch information
Oleksandra Nedashkivska committed Aug 20, 2024
1 parent baac967 commit f554d56
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions frontend/src/app/app.tsx
Original file line number Diff line number Diff line change
@@ -1,17 +1,8 @@
import { RouterOutlet } from '~/bundles/common/components/components.js';
import { AppRoute } from '~/bundles/common/enums/enums.js';
import { useLocation } from '~/bundles/common/hooks/hooks.js';

const App: React.FC = () => {
const { pathname } = useLocation();

const isAuth =
pathname === AppRoute.SIGN_IN || pathname === AppRoute.SIGN_UP;

return (
<>
{/* TODO Header */}
{!isAuth && 'Header'}
<RouterOutlet />
</>
);
Expand Down

0 comments on commit f554d56

Please sign in to comment.