-
Notifications
You must be signed in to change notification settings - Fork 94
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 #1632 from houdiniproject/work-on-sidenav
Componentize Sidenav
- Loading branch information
Showing
5 changed files
with
54 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// License: LGPL-3.0-or-later | ||
// from app/views/layouts/_user_menu.html.erb | ||
|
||
import classNames from 'classnames'; | ||
import React from 'react'; | ||
|
||
|
||
export default function Link({ className = '', ...props}: React.ComponentPropsWithoutRef<"a">): JSX.Element { | ||
return (<a {...props} className={classNames(...className, 'sideNav-link')}/>); | ||
} |
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// License: LGPL-3.0-or-later | ||
import React from 'react'; | ||
|
||
export default function Section(props: React.PropsWithChildren<unknown>): JSX.Element { | ||
return ( | ||
<section className='sideNav-section'> | ||
{props.children} | ||
</section> | ||
); | ||
} | ||
|
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