We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 572d7c5 commit a59b0aaCopy full SHA for a59b0aa
src/components/TopBar/index.tsx
@@ -6,13 +6,13 @@ import { ArrowIcon } from '@icons/ArrowIcon'
6
import classes from './index.module.scss'
7
8
export const TopBar: React.FC<TopBarType> = ({ link, message }) => {
9
- const { type, label, reference, url } = link || {}
10
-
11
return (
12
- <CMSLink className={classes.topBar} reference={reference} type={type} url={url}>
13
- <span className={classes.message}>{message}</span>
14
- <span className={classes.label}>{label}</span>
15
- <ArrowIcon />
16
- </CMSLink>
+ link && (
+ <CMSLink className={classes.topBar} {...link} label={undefined}>
+ <span className={classes.message}>{message}</span>
+ <span className={classes.label}>{link.label}</span>
+ <ArrowIcon />
+ </CMSLink>
+ )
17
)
18
}
0 commit comments