diff --git a/lib/component/progress/DangerProgress.tsx b/lib/component/progress/DangerProgress.tsx index 45e728a..7d5b486 100644 --- a/lib/component/progress/DangerProgress.tsx +++ b/lib/component/progress/DangerProgress.tsx @@ -1,21 +1,15 @@ import type { ThemedProgressProps } from "$/types/ProgressTypes"; -import { forwardRef } from "react"; import Progress from "./Progress"; -const DangerProgress = forwardRef(({ +export default function DangerProgress({ ...props -}, ref ) => { +}: Readonly){ return ( ); -}); - -DangerProgress.displayName = "DangerProgress"; - -export default DangerProgress; +} diff --git a/lib/component/progress/DarkProgress.tsx b/lib/component/progress/DarkProgress.tsx index 8d413c3..e66d20e 100644 --- a/lib/component/progress/DarkProgress.tsx +++ b/lib/component/progress/DarkProgress.tsx @@ -1,21 +1,15 @@ import type { ThemedProgressProps } from "$/types/ProgressTypes"; -import { forwardRef } from "react"; import Progress from "./Progress"; -const DarkProgress = forwardRef(({ +export default function DarkProgress({ ...props -}, ref ) => { +}: Readonly){ return ( ); -}); - -DarkProgress.displayName = "DarkProgress"; - -export default DarkProgress; +} diff --git a/lib/component/progress/InfoProgress.tsx b/lib/component/progress/InfoProgress.tsx index 169f224..7b070af 100644 --- a/lib/component/progress/InfoProgress.tsx +++ b/lib/component/progress/InfoProgress.tsx @@ -1,21 +1,15 @@ import type { ThemedProgressProps } from "$/types/ProgressTypes"; -import { forwardRef } from "react"; import Progress from "./Progress"; -const InfoProgress = forwardRef(({ +export default function InfoProgress({ ...props -}, ref ) => { +}: Readonly){ return ( ); -}); - -InfoProgress.displayName = "InfoProgress"; - -export default InfoProgress; +} diff --git a/lib/component/progress/LightProgress.tsx b/lib/component/progress/LightProgress.tsx index b64e767..de79c32 100644 --- a/lib/component/progress/LightProgress.tsx +++ b/lib/component/progress/LightProgress.tsx @@ -1,21 +1,15 @@ import type { ThemedProgressProps } from "$/types/ProgressTypes"; -import { forwardRef } from "react"; import Progress from "./Progress"; -const LightProgress = forwardRef(({ +export default function LightProgress({ ...props -}, ref ) => { +}: Readonly){ return ( ); -}); - -LightProgress.displayName = "LightProgress"; - -export default LightProgress; +} diff --git a/lib/component/progress/MoltenProgress.tsx b/lib/component/progress/MoltenProgress.tsx index 7a42cf9..fd42d29 100644 --- a/lib/component/progress/MoltenProgress.tsx +++ b/lib/component/progress/MoltenProgress.tsx @@ -1,21 +1,15 @@ import type { ThemedProgressProps } from "$/types/ProgressTypes"; -import { forwardRef } from "react"; import Progress from "./Progress"; -const MoltenProgress = forwardRef(({ +export default function MoltenProgress({ ...props -}, ref ) => { +}: Readonly){ return ( ); -}); - -MoltenProgress.displayName = "MoltenProgress"; - -export default MoltenProgress; +} diff --git a/lib/component/progress/PrimaryProgress.tsx b/lib/component/progress/PrimaryProgress.tsx index e23b4af..0f68e8c 100644 --- a/lib/component/progress/PrimaryProgress.tsx +++ b/lib/component/progress/PrimaryProgress.tsx @@ -1,21 +1,15 @@ import type { ThemedProgressProps } from "$/types/ProgressTypes"; -import { forwardRef } from "react"; import Progress from "./Progress"; -const PrimaryProgress = forwardRef(({ +export default function PrimaryProgress({ ...props -}, ref ) => { +}: Readonly){ return ( ); -}); - -PrimaryProgress.displayName = "PrimaryProgress"; - -export default PrimaryProgress; +} diff --git a/lib/component/progress/Progress.tsx b/lib/component/progress/Progress.tsx index 25f7b2d..ef934d9 100644 --- a/lib/component/progress/Progress.tsx +++ b/lib/component/progress/Progress.tsx @@ -1,9 +1,9 @@ import type { ProgressProps } from "$/types/ProgressTypes"; import clsx from "clsx"; -import { forwardRef, useMemo } from "react"; +import { useMemo } from "react"; -const Progress = forwardRef(({ +export default function Progress({ id, className, value, @@ -15,7 +15,7 @@ const Progress = forwardRef(({ tabIndex, progressColor, backgroundColor -}, ref ) => { +}: Readonly){ const percentage = useMemo(() => { const num = !value || Number.isNaN(value) ? min : Math.max(value, min); const den = (!value || Number.isNaN(value) ? max : Math.max(value, max)) - min; @@ -55,7 +55,6 @@ const Progress = forwardRef(({ aria-valuenow={value ? Math.round(value * 10000) / 100 : undefined} aria-label={label} tabIndex={tabIndex ?? 0} - ref={ref} >
(({ />
); -}); - -Progress.displayName = "Progress"; - -export default Progress; +} diff --git a/lib/component/progress/SecondaryProgress.tsx b/lib/component/progress/SecondaryProgress.tsx index 309cadb..2b94a6e 100644 --- a/lib/component/progress/SecondaryProgress.tsx +++ b/lib/component/progress/SecondaryProgress.tsx @@ -1,21 +1,15 @@ import type { ThemedProgressProps } from "$/types/ProgressTypes"; -import { forwardRef } from "react"; import Progress from "./Progress"; -const SecondaryProgress = forwardRef(({ +export default function SecondaryProgress({ ...props -}, ref ) => { +}: Readonly){ return ( ); -}); - -SecondaryProgress.displayName = "SecondaryProgress"; - -export default SecondaryProgress; +} diff --git a/lib/component/progress/SuccessProgress.tsx b/lib/component/progress/SuccessProgress.tsx index 3fd5818..0c17edd 100644 --- a/lib/component/progress/SuccessProgress.tsx +++ b/lib/component/progress/SuccessProgress.tsx @@ -1,21 +1,15 @@ import type { ThemedProgressProps } from "$/types/ProgressTypes"; -import { forwardRef } from "react"; import Progress from "./Progress"; -const SuccessProgress = forwardRef(({ +export default function SuccessProgress({ ...props -}, ref ) => { +}: Readonly){ return ( ); -}); - -SuccessProgress.displayName = "SuccessProgress"; - -export default SuccessProgress; +} diff --git a/lib/component/progress/TertiaryProgress.tsx b/lib/component/progress/TertiaryProgress.tsx index 7af6006..b989902 100644 --- a/lib/component/progress/TertiaryProgress.tsx +++ b/lib/component/progress/TertiaryProgress.tsx @@ -1,21 +1,15 @@ import type { ThemedProgressProps } from "$/types/ProgressTypes"; -import { forwardRef } from "react"; import Progress from "./Progress"; -const TertiaryProgress = forwardRef(({ +export default function TertiaryProgress({ ...props -}, ref ) => { +}: Readonly){ return ( ); -}); - -TertiaryProgress.displayName = "TertiaryProgress"; - -export default TertiaryProgress; +} diff --git a/lib/component/progress/WarningProgress.tsx b/lib/component/progress/WarningProgress.tsx index e139990..6e50b00 100644 --- a/lib/component/progress/WarningProgress.tsx +++ b/lib/component/progress/WarningProgress.tsx @@ -1,21 +1,15 @@ import type { ThemedProgressProps } from "$/types/ProgressTypes"; -import { forwardRef } from "react"; import Progress from "./Progress"; -const WarningProgress = forwardRef(({ +export default function WarningProgress({ ...props -}, ref ) => { +}: Readonly){ return ( ); -}); - -WarningProgress.displayName = "WarningProgress"; - -export default WarningProgress; +}