-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
38e1685
commit 63deb05
Showing
9 changed files
with
83 additions
and
79 deletions.
There are no files selected for viewing
34 changes: 0 additions & 34 deletions
34
packages/libs/react-ui/src/components/NavFooter/FooterLink.tsx
This file was deleted.
Oops, something went wrong.
File renamed without changes.
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
6 changes: 3 additions & 3 deletions
6
...ct-ui/src/components/NavFooter/Footer.tsx → ...ui/src/components/NavFooter/NavFooter.tsx
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
6 changes: 3 additions & 3 deletions
6
...components/NavFooter/FooterIconButton.tsx → ...ponents/NavFooter/NavFooterIconButton.tsx
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
43 changes: 43 additions & 0 deletions
43
packages/libs/react-ui/src/components/NavFooter/NavFooterLink.tsx
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,43 @@ | ||
import { linkBoxClass, linkClass } from './NavFooter.css'; | ||
|
||
import classNames from 'classnames'; | ||
import React, { FC } from 'react'; | ||
|
||
export type Target = '_self' | '_blank'; | ||
export interface INavFooterLinkProps { | ||
children: string; | ||
href?: string; | ||
target?: Target; | ||
} | ||
|
||
export const NavFooterLink: FC<INavFooterLinkProps> = ({ | ||
children, | ||
href, | ||
target, | ||
}) => { | ||
return ( | ||
<div className={linkBoxClass} data-testid="kda-footer-link-item"> | ||
<span | ||
className={classNames(linkClass, { | ||
color: 'inherit', | ||
textDecorationColor: 'inherit', | ||
})} | ||
> | ||
{href !== undefined ? ( | ||
<a | ||
style={{ | ||
color: 'inherit', | ||
textDecorationColor: 'inherit', | ||
}} | ||
href={href} | ||
target={target} | ||
> | ||
{children} | ||
</a> | ||
) : ( | ||
<span>{children}</span> | ||
)} | ||
</span> | ||
</div> | ||
); | ||
}; |
6 changes: 3 additions & 3 deletions
6
.../src/components/NavFooter/FooterPanel.tsx → ...c/components/NavFooter/NavFooterPanel.tsx
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 |
---|---|---|
@@ -1,31 +1,31 @@ | ||
import type { IFooterProps } from './Footer'; | ||
import { FooterContainer } from './Footer'; | ||
import type { IFooterIconButtonProps } from './FooterIconButton'; | ||
import { FooterIconButton } from './FooterIconButton'; | ||
import type { IFooterLinkProps } from './FooterLink'; | ||
import { FooterLink } from './FooterLink'; | ||
import type { IFooterPanelProps } from './FooterPanel'; | ||
import { FooterPanel } from './FooterPanel'; | ||
import type { INavFooterContainerProps } from './NavFooter'; | ||
import { NavFooterContainer } from './NavFooter'; | ||
import type { INavFooterIconButtonProps } from './NavFooterIconButton'; | ||
import { NavFooterIconButton } from './NavFooterIconButton'; | ||
import type { INavFooterLinkProps } from './NavFooterLink'; | ||
import { NavFooterLink } from './NavFooterLink'; | ||
import type { INavFooterPanelProps } from './NavFooterPanel'; | ||
import { NavFooterPanel } from './NavFooterPanel'; | ||
|
||
import { FC } from 'react'; | ||
|
||
export { | ||
IFooterProps as INavFooterRootProps, | ||
IFooterIconButtonProps as INavFooterIconButtonProps, | ||
IFooterLinkProps as INavFooterLinkProps, | ||
IFooterPanelProps as INavFooterPanelProps, | ||
INavFooterContainerProps, | ||
INavFooterIconButtonProps, | ||
INavFooterLinkProps, | ||
INavFooterPanelProps, | ||
}; | ||
|
||
export interface INavFooterProps { | ||
Root: FC<IFooterProps>; | ||
Panel: FC<IFooterPanelProps>; | ||
Link: FC<IFooterLinkProps>; | ||
IconButton: FC<IFooterIconButtonProps>; | ||
Root: FC<INavFooterContainerProps>; | ||
Panel: FC<INavFooterPanelProps>; | ||
Link: FC<INavFooterLinkProps>; | ||
IconButton: FC<INavFooterIconButtonProps>; | ||
} | ||
|
||
export const NavFooter: INavFooterProps = { | ||
Root: FooterContainer, | ||
Panel: FooterPanel, | ||
Link: FooterLink, | ||
IconButton: FooterIconButton, | ||
Root: NavFooterContainer, | ||
Panel: NavFooterPanel, | ||
Link: NavFooterLink, | ||
IconButton: NavFooterIconButton, | ||
}; |