From 4bdc1a257df23daffd769a975072f2f36f733f35 Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Wed, 5 Aug 2020 10:27:33 +0200 Subject: [PATCH] input placeholder fix --- src/components/atoms/Input/InputElement.tsx | 38 ++++++--------------- 1 file changed, 10 insertions(+), 28 deletions(-) diff --git a/src/components/atoms/Input/InputElement.tsx b/src/components/atoms/Input/InputElement.tsx index 78a0b4d1d..b411ae6e4 100644 --- a/src/components/atoms/Input/InputElement.tsx +++ b/src/components/atoms/Input/InputElement.tsx @@ -6,26 +6,17 @@ import FilesInput from '../../molecules/FormFields/FilesInput' import Terms from '../../molecules/FormFields/Terms' import Price from '../../molecules/FormFields/Price' -const DefaultInput = ( - { name, type }: { name: string; type?: string }, - props: InputProps -) => ( - +const DefaultInput = (props: InputProps) => ( + ) export default function InputElement(props: InputProps): ReactElement { - const { type, options, rows, name, prefix, postfix } = props + const { type, options, name, prefix, postfix } = props switch (type) { case 'select': return ( - {options && options @@ -38,15 +29,7 @@ export default function InputElement(props: InputProps): ReactElement { ) case 'textarea': - return ( -