-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #49 from pluralsh/new-sidebar
Implement new Sidebar
- Loading branch information
Showing
23 changed files
with
9,852 additions
and
10,481 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
Large diffs are not rendered by default.
Oops, something went wrong.
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -40,6 +40,7 @@ function Template(args: any) { | |
createItem({ | ||
name: 'User Attributes', | ||
Icon: ScrollIcon, | ||
url: '/user-attributes', | ||
}), | ||
createItem({ | ||
name: 'Password', | ||
|
@@ -257,6 +258,13 @@ function Template(args: any) { | |
> | ||
Go to /explore/public | ||
</button> | ||
<button | ||
type="button" | ||
style={{ marginTop: '1rem' }} | ||
onClick={() => setActiveUrl('/user-attributes')} | ||
> | ||
Go to /user-attributes | ||
</button> | ||
</Flex> | ||
</Flex> | ||
) | ||
|
@@ -265,8 +273,17 @@ function Template(args: any) { | |
export const Default = Template.bind({}) | ||
|
||
Default.args = { | ||
user: { | ||
name: 'Jane Smith', | ||
email: '[email protected]', | ||
}, | ||
userName: 'Jane Smith', | ||
userOrganization: 'Plural', | ||
onUserClick: () => window.alert('User clicked'), | ||
onNotificationsClick: () => window.alert('Notifications clicked'), | ||
onUpdateClick: () => window.alert('Update clicked'), | ||
notificationsCount: 8, | ||
hasUpdate: true, | ||
} | ||
|
||
export const NoOrganization = Template.bind({}) | ||
|
||
NoOrganization.args = { | ||
userName: 'Jane Smith', | ||
} |
Oops, something went wrong.