chore: better Prettier config for easier reviews
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
import Link from 'next/link'
|
||||
import classNames from 'clsx'
|
||||
import Link from "next/link"
|
||||
import classNames from "clsx"
|
||||
|
||||
export interface IconLinkProps {
|
||||
selected?: boolean
|
||||
@ -9,27 +9,27 @@ export interface IconLinkProps {
|
||||
}
|
||||
|
||||
export const IconLink: React.FC<React.PropsWithChildren<IconLinkProps>> = (
|
||||
props
|
||||
props,
|
||||
) => {
|
||||
const { children, selected, href, title, className } = props
|
||||
|
||||
return (
|
||||
<Link
|
||||
href={href}
|
||||
className='group relative flex w-full justify-center'
|
||||
className="group relative flex w-full justify-center"
|
||||
title={title}
|
||||
>
|
||||
<div
|
||||
className={classNames('group flex w-full justify-center', className)}
|
||||
className={classNames("group flex w-full justify-center", className)}
|
||||
>
|
||||
{children}
|
||||
<div className='absolute left-0 flex h-12 w-3 items-center'>
|
||||
<div className="absolute left-0 flex h-12 w-3 items-center">
|
||||
<span
|
||||
className={classNames(
|
||||
'absolute w-4/12 rounded-r-lg bg-green-700 group-hover:h-5',
|
||||
"absolute w-4/12 rounded-r-lg bg-green-700 group-hover:h-5",
|
||||
{
|
||||
'h-full': selected
|
||||
}
|
||||
"h-full": selected,
|
||||
},
|
||||
)}
|
||||
></span>
|
||||
</div>
|
||||
|
@ -1 +1 @@
|
||||
export * from './IconLink'
|
||||
export * from "./IconLink"
|
||||
|
Reference in New Issue
Block a user