@bbki.ng/ui 0.1.13 → 0.1.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/package.json +1 -1
- package/src/molecules/nav/Nav.tsx +2 -2
- package/src/molecules/nav/Nav.types.ts +1 -0
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@ import { Logo } from '../../atoms/logo';
|
|
|
5
5
|
import { NavProps } from './Nav.types';
|
|
6
6
|
|
|
7
7
|
export const Nav = (props: NavProps) => {
|
|
8
|
-
const { paths, loading, mini, className, customLogo } = props;
|
|
8
|
+
const { paths, loading, mini, className, customLogo, style = {} } = props;
|
|
9
9
|
const nav = useNavigate();
|
|
10
10
|
|
|
11
11
|
if (mini) {
|
|
@@ -17,7 +17,7 @@ export const Nav = (props: NavProps) => {
|
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
return (
|
|
20
|
-
<div className={twMerge('p-2 w-full flex items-center', className)}>
|
|
20
|
+
<div className={twMerge('p-2 w-full flex items-center', className)} style={style}>
|
|
21
21
|
{customLogo || (
|
|
22
22
|
<Logo className="mr-2 cursor-pointer hover:opacity-80" onClick={() => nav('/')} />
|
|
23
23
|
)}
|