feat: upgrade UI with premium industrial aesthetics, purely visual language switch, and resilient error pages
Former-commit-id: e4d801c24e64c41816f86de9767b47894abb6806
This commit is contained in:
@@ -8,9 +8,10 @@ interface TransitionLinkProps extends Omit<React.AnchorHTMLAttributes<HTMLAnchor
|
||||
children: React.ReactNode;
|
||||
className?: string;
|
||||
href: string;
|
||||
transitionMessage?: string;
|
||||
}
|
||||
|
||||
export function TransitionLink({ children, href, onClick, ...props }: TransitionLinkProps) {
|
||||
export function TransitionLink({ children, href, onClick, transitionMessage, ...props }: TransitionLinkProps) {
|
||||
const { startTransition } = useTransition();
|
||||
|
||||
const handleClick = (e: React.MouseEvent<HTMLAnchorElement, MouseEvent>) => {
|
||||
@@ -26,7 +27,7 @@ export function TransitionLink({ children, href, onClick, ...props }: Transition
|
||||
e.preventDefault();
|
||||
|
||||
// Die Transition starten (welche intern pusht)
|
||||
startTransition(href.toString());
|
||||
startTransition(href.toString(), transitionMessage);
|
||||
};
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user