update to js
This commit is contained in:
18
dashboard_js/app/layouts/auth/_link.jsx
Normal file
18
dashboard_js/app/layouts/auth/_link.jsx
Normal file
@@ -0,0 +1,18 @@
|
||||
import { createElement } from 'react'
|
||||
import clsx from 'clsx'
|
||||
|
||||
export function Link({ children, as = 'button', className, ...props }) {
|
||||
return createElement(
|
||||
as,
|
||||
{
|
||||
className: clsx(
|
||||
className,
|
||||
'text-green-primary dark:text-green-secondary underline hover:no-underline',
|
||||
'disabled:no-underline disabled:cursor-not-allowed disabled:text-gray-400',
|
||||
'dark:disabled:text-gray-600',
|
||||
),
|
||||
...props,
|
||||
},
|
||||
children,
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user