This commit is contained in:
parent
42d5f92b2b
commit
e96d04c317
1 changed files with 6 additions and 1 deletions
|
|
@ -24,7 +24,12 @@ type ItemGroupProps = {
|
||||||
|
|
||||||
const Item = ({href, title, description, icon, onClick}: ItemProps) => {
|
const Item = ({href, title, description, icon, onClick}: ItemProps) => {
|
||||||
return (
|
return (
|
||||||
<Link href={href} className={styles.item} onClick={onClick}>
|
<Link
|
||||||
|
href={href}
|
||||||
|
className={styles.item}
|
||||||
|
onClick={onClick}
|
||||||
|
target={href.includes("/api") ? "_blank" : undefined}
|
||||||
|
>
|
||||||
{icon &&
|
{icon &&
|
||||||
<div className={styles.itemIcon}>
|
<div className={styles.itemIcon}>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue