Skip to content

Commit 1a226f3

Browse files
feat: add href to CurrentUserNav
1 parent f2e7ce6 commit 1a226f3

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

src/molecules/rich-text/rich-text-props.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,28 +15,28 @@ export type QuillToolbarOptions = Array<
1515

1616
/**
1717
* variable holding a default quill toolbar. It looks like this:
18-
*
18+
*
1919
* ```javascript
2020
* export const DefaultQuillToolbarOptions = [
2121
* [{ header: [1, 2, 3, 4, 5, 6, false] }],
2222
* ['bold', 'italic', 'underline', 'strike'], // toggled buttons
2323
* ['blockquote', 'code-block'],
2424
* [{ list: 'ordered' }, { list: 'bullet' }],
2525
* [{ indent: '-1' }, { indent: '+1' }],
26-
*
26+
*
2727
* [{ align: [] }],
2828
* ['link', 'image', 'video'],
29-
*
29+
*
3030
* ['clean'], // remove formatting button
3131
* ]
3232
* ```
33-
*
33+
*
3434
* ### Usage
35-
*
35+
*
3636
* ```javascript
3737
* import { DefaultQuillToolbarOptions } from '@admin-bro/design-system`
3838
* ```
39-
*
39+
*
4040
*
4141
* @memberof RichText
4242
* @alias DefaultQuillToolbarOptions

src/organisms/current-user-nav/current-user-nav-props.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ export type CurrentUserNavAction = {
1313
icon?: string,
1414
/** indicates if action is active */
1515
isActive?: string,
16+
/** href for an action */
17+
href?: string,
1618
}
1719

1820
/**

src/organisms/current-user-nav/current-user-nav.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ const CurrentUserNav: React.FC<CurrentUserNavProps> = (props) => {
3838
variant="text"
3939
title={action.label}
4040
key={action.label}
41+
href={action.href}
4142
as="a"
4243
className="line-action"
4344
onClick={action.onClick}
@@ -77,6 +78,7 @@ const CurrentUserNav: React.FC<CurrentUserNavProps> = (props) => {
7778
key={action.label}
7879
as="a"
7980
onClick={action.onClick}
81+
href={action.href}
8082
>
8183
{action.icon && (
8284
<Icon icon={action.icon} />

0 commit comments

Comments
 (0)