Settings Routes (#449)
* Building out settings area
* Flow and refactoring
* TeamLogo
* Add temporary profile screen
* 💚
* PR feedback
This commit is contained in:
@ -11,6 +11,7 @@ const RealTextarea = styled.textarea`
|
||||
outline: none;
|
||||
background: none;
|
||||
|
||||
&:disabled,
|
||||
&::placeholder {
|
||||
color: ${color.slate};
|
||||
}
|
||||
@ -23,6 +24,7 @@ const RealInput = styled.input`
|
||||
outline: none;
|
||||
background: none;
|
||||
|
||||
&:disabled,
|
||||
&::placeholder {
|
||||
color: ${color.slate};
|
||||
}
|
||||
@ -52,13 +54,18 @@ export const LabelText = styled.div`
|
||||
`;
|
||||
|
||||
export type Props = {
|
||||
type: string,
|
||||
type?: string,
|
||||
value?: string,
|
||||
label?: string,
|
||||
className?: string,
|
||||
};
|
||||
|
||||
export default function Input({ type, label, className, ...rest }: Props) {
|
||||
export default function Input({
|
||||
type = 'text',
|
||||
label,
|
||||
className,
|
||||
...rest
|
||||
}: Props) {
|
||||
const InputComponent = type === 'textarea' ? RealTextarea : RealInput;
|
||||
|
||||
return (
|
||||
|
Reference in New Issue
Block a user