- Updated import paths for various components to align with new directory structure. - Changed imports from 'row-actions', 'confirm-dialog', 'image-preview-button', and 'file-upload' to their respective new locations in 'data-display', 'dialogs', and 'inputs'. - Adjusted imports in multiple pages including purchase, restock, transaction, category, customer, product, raw-material, supplier, roles, and settings. - Ensured all relevant components are imported from their new locations to maintain functionality.
24 lines
616 B
TypeScript
24 lines
616 B
TypeScript
import { Link } from '@inertiajs/react';
|
|
import type { ComponentProps } from 'react';
|
|
import { cn } from '@/lib/utils';
|
|
|
|
type Props = ComponentProps<typeof Link>;
|
|
|
|
export default function TextLink({
|
|
className = '',
|
|
children,
|
|
...props
|
|
}: Props) {
|
|
return (
|
|
<Link
|
|
className={cn(
|
|
'text-foreground underline decoration-neutral-300 underline-offset-4 transition-colors duration-300 ease-out hover:decoration-current! dark:decoration-neutral-500',
|
|
className,
|
|
)}
|
|
{...props}
|
|
>
|
|
{children}
|
|
</Link>
|
|
);
|
|
}
|