Skip to content

Commit

Permalink
fix: fix SimpleInput placeholder (#132)
Browse files Browse the repository at this point in the history
  • Loading branch information
demenech authored Nov 20, 2023
1 parent a5dcb77 commit 2645087
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions deployment/frontend/src/components/_shared/SimpleInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,19 @@ export interface InputProps

export const Input = React.forwardRef<HTMLInputElement, InputProps>(
(
{ className, type, maxWidth, icon, placeholder, children, ...props },
{ className, type, maxWidth, icon, children, ...props },
ref,
) => {
return (
<div className={classNames("relative w-full rounded-md", maxWidth)}>
<input
type={type}
ref={ref}
{...props}
className={classNames(
"shadow-wri-small block w-full rounded-md border-0 px-5 py-3 text-gray-900 ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:border-b-2 focus:border-blue-800 disabled:bg-gray-100 focus:bg-slate-100 focus:ring-0 focus:ring-offset-0 sm:text-sm sm:leading-6",
className ?? "",
)}
{...props}
></input>
{children}
{icon && (
Expand Down

0 comments on commit 2645087

Please sign in to comment.