Skip to content

Commit

Permalink
fix: padding on header
Browse files Browse the repository at this point in the history
  • Loading branch information
williamsimionatto committed May 9, 2024
1 parent 455f622 commit 3e8175d
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions src/pages/HomePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import '@styles/index.scss';
import '../App.css';
import logo from '@assets/logo-small.svg';

import { Icon, Item, ItemList, PageHeader, Tab } from '@components';
import { Button, Icon, Item, ItemList, PageHeader, Tab } from '@components';
import { useAuthContext } from '@contexts/AuthProvider';

function HomePage() {
Expand Down Expand Up @@ -43,17 +43,20 @@ function HomePage() {
component: <div>Conteúdo de Caronas</div>,
},
];
const { logout, user } = useAuthContext();
const { logout } = useAuthContext();

return (
<>
<div className="p-s-300 align-items-center">
<div className="pb-s-300 pt-s-300 align-items-center">
<PageHeader
logo={logo}
actions={
<a onClick={() => logout()}>
<Icon>logout</Icon>
</a>
<Button
className="sidebutton__label sidebutton__label--xs"
prefixes={<Icon>logout</Icon>}
design="transparent"
onClick={() => logout()}
></Button>
}
/>
</div>
Expand Down

0 comments on commit 3e8175d

Please sign in to comment.