fix errors

This commit is contained in:
Aman Varshney
2025-02-15 13:17:27 +05:30
parent d12849501a
commit c03c469838
10 changed files with 308 additions and 283 deletions

View File

@@ -1,22 +1,26 @@
interface ShinyTextProps {
text: string;
disabled?: boolean;
speed?: number;
className?: string;
text: string;
disabled?: boolean;
speed?: number;
className?: string;
}
const ShinyText = ({ text, disabled = false, speed = 5, className = '' }: ShinyTextProps) => {
const animationDuration = `${speed}s`;
const ShinyText = ({
text,
disabled = false,
speed = 5,
className = "",
}: ShinyTextProps) => {
const animationDuration = `${speed}s`;
return (
<div
className={`shiny-text ${disabled ? 'disabled' : ''} ${className}`}
style={{ animationDuration }}
>
{text}
</div>
);
return (
<div
className={`shiny-text ${disabled ? "disabled" : ""} ${className}`}
style={{ animationDuration }}
>
{text}
</div>
);
};
export default ShinyText;