React 19 compiler auto-optimizes memoization, making manual hooks unnecessary. Changes: - Remove ~60 useCallback/useMemo across 16 files - Remove React.memo from nav-button and return-button - Simplify hydration with useSyncExternalStore (privacy-provider) - Add CHANGELOG.md for version tracking No functional changes - internal optimization only. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
23 lines
421 B
TypeScript
23 lines
421 B
TypeScript
"use client";
|
|
|
|
import { Button } from "../ui/button";
|
|
|
|
interface ReturnButtonProps {
|
|
disabled?: boolean;
|
|
onClick: () => void;
|
|
}
|
|
|
|
export default function ReturnButton({ disabled, onClick }: ReturnButtonProps) {
|
|
return (
|
|
<Button
|
|
className="w-32 h-6 rounded-sm lowercase"
|
|
size="sm"
|
|
disabled={disabled}
|
|
onClick={onClick}
|
|
aria-label="Retornar para o mês atual"
|
|
>
|
|
Ir para Mês Atual
|
|
</Button>
|
|
);
|
|
}
|