-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(header): structured navigation header (#1240)
* feat(header): optional buttons in header * feat(header): add AdminHeader to all pages * fix(pages): refactor contrast * feat(header): add icons * fix(create board): change button to primary button * feat(create board): remove create board component from boards * fix(style): gap between header and body * fix(header): icons before text * chore(header): remove options prop from header * chore(header): icon to create board * chore(header): remove prop from create board
- Loading branch information
1 parent
54e0211
commit cc97354
Showing
7 changed files
with
53 additions
and
29 deletions.
There are no files selected for viewing
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,21 +1,22 @@ | ||
import { Button } from '@entur/button' | ||
import { PrimaryButton } from '@entur/button' | ||
import { useState } from 'react' | ||
import Link from 'next/link' | ||
import { AddIcon } from '@entur/icons' | ||
|
||
function CreateBoard() { | ||
const [loading, isLoading] = useState(false) | ||
return ( | ||
<Button | ||
<PrimaryButton | ||
as={Link} | ||
href="/api/board" | ||
replace | ||
onClick={() => isLoading(true)} | ||
variant="primary" | ||
disabled={loading} | ||
loading={loading} | ||
> | ||
<AddIcon /> | ||
Opprett ny tavle | ||
</Button> | ||
</PrimaryButton> | ||
) | ||
} | ||
export { CreateBoard } |
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,4 +1,7 @@ | ||
.root { | ||
display: flex; | ||
flex-direction: column; | ||
gap: 1em; | ||
padding: 1em; | ||
margin: 0 5em; | ||
} |