-
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.
feat: Reduce spacing between icons in sidebar and add vertical padding (
#648)
- Loading branch information
1 parent
b353792
commit a185b03
Showing
5 changed files
with
41 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { Menu as HonorableMenu } from 'honorable' | ||
import type { MenuProps as HonorableMenuProps } from 'honorable' | ||
import { type MutableRefObject, forwardRef } from 'react' | ||
|
||
export type MenuProps = HonorableMenuProps | ||
|
||
function MenuRef({ ...props }: MenuProps, ref: MutableRefObject<any>) { | ||
return ( | ||
<HonorableMenu | ||
ref={ref} | ||
{...props} | ||
/> | ||
) | ||
} | ||
|
||
const Menu = forwardRef(MenuRef) | ||
|
||
export default Menu |
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,18 @@ | ||
import { MenuItem as HonorableMenuItem } from 'honorable' | ||
import type { MenuItemProps as HonorableMenuItemProps } from 'honorable' | ||
import { type MutableRefObject, forwardRef } from 'react' | ||
|
||
export type MenuItemProps = HonorableMenuItemProps | ||
|
||
function MenuItemRef({ ...props }: MenuItemProps, ref: MutableRefObject<any>) { | ||
return ( | ||
<HonorableMenuItem | ||
ref={ref} | ||
{...props} | ||
/> | ||
) | ||
} | ||
|
||
const MenuItem = forwardRef(MenuItemRef) | ||
|
||
export default MenuItem |
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