Skip to content

Commit

Permalink
fix: rename prop based on suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
aizad-deriv committed Jan 24, 2024
1 parent ab025e8 commit cbadf3f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/components/Input/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export type InputVariants = "general" | "success" | "error";
interface InputProps
extends Omit<ComponentProps<"input">, "style" | "placeholder"> {
label?: string;
hasRightPlaceholder?: ReactNode;
rightPlaceholder?: ReactNode;
error?: boolean;
variant?: InputVariants;
message?: ReactNode;
Expand All @@ -30,7 +30,7 @@ export const Input = ({
id,
error,
message,
hasRightPlaceholder,
rightPlaceholder,
variant = "general",
className,
disabled,
Expand All @@ -57,8 +57,8 @@ export const Input = ({
>
{label}
</label>
{hasRightPlaceholder && (
<div className="deriv-input--right-content">{hasRightPlaceholder}</div>
{rightPlaceholder && (
<div className="deriv-input--right-content">{rightPlaceholder}</div>
)}
<div className="deriv-input--helper-message">
{message && (
Expand Down

0 comments on commit cbadf3f

Please sign in to comment.