Skip to content

Commit

Permalink
feat(add new content button): add new content button on header
Browse files Browse the repository at this point in the history
  • Loading branch information
victorhcb committed Mar 28, 2023
1 parent fd7ed67 commit 4670579
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pages/interface/components/Header/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Header, Box, ActionMenu, ActionList, IconButton, Truncate, Text, Tooltip } from '@primer/react';
import { Header, Box, Button, ActionMenu, ActionList, IconButton, Truncate, Text, Tooltip } from '@primer/react';
import { PersonFillIcon, HomeIcon, SquareFillIcon } from '@primer/octicons-react';
import { CgTab } from 'react-icons/cg';
import { HeaderLink, Link, useUser } from 'pages/interface';
Expand Down Expand Up @@ -51,6 +51,11 @@ export default function HeaderComponent() {

{user && (
<>
<Header.Item>
<HeaderLink href="/publicar">
<Button variant="primary">+ Publicar novo conteúdo</Button>
</HeaderLink>
</Header.Item>
<Header.Item
sx={{
mr: 2,
Expand Down

0 comments on commit 4670579

Please sign in to comment.