Skip to content

Commit

Permalink
fix(popup/PayWebsiteForm): make amount input full width (#763)
Browse files Browse the repository at this point in the history
  • Loading branch information
sidvishnoi authored Dec 5, 2024
1 parent e34be53 commit 8d02664
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/pages/popup/components/Settings/RateOfPay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ const RateOfPayInput = ({
<InputAmount
id="rateOfPay"
className="max-w-56"
wrapperClassName="w-fit"
label="Rate of pay per hour"
walletAddress={walletAddress}
onChange={(value) => {
Expand Down
4 changes: 3 additions & 1 deletion src/pages/shared/components/InputAmount.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ interface Props {
onChange: (amount: string, inputEl: HTMLInputElement) => void;
onError: (error: ErrorWithKeyLike) => void;
className?: string;
wrapperClassName?: string;
placeholder?: string;
errorMessage?: string;
readOnly?: boolean;
Expand All @@ -34,6 +35,7 @@ export const InputAmount = ({
walletAddress,
amount,
className,
wrapperClassName,
placeholder,
errorMessage,
onChange,
Expand Down Expand Up @@ -133,7 +135,7 @@ export const InputAmount = ({
description={description}
placeholder={placeholder}
className={className}
wrapperClassName="w-fit"
wrapperClassName={wrapperClassName}
defaultValue={amount}
readOnly={readOnly}
leadingAddOn={<span className="text-weak">{currencySymbol}</span>}
Expand Down

0 comments on commit 8d02664

Please sign in to comment.