From 9c0c6fd81870119a0862646002feed6b8edc582a Mon Sep 17 00:00:00 2001 From: honzapatCZ Date: Tue, 30 Mar 2021 23:43:40 +0200 Subject: [PATCH] podstatne updaty --- Parts/Button.js | 1 - Parts/Input.js | 33 +++++++++++++++++++++------------ Parts/Text.js | 28 +++++++++++++++++++++++++++- 3 files changed, 48 insertions(+), 14 deletions(-) diff --git a/Parts/Button.js b/Parts/Button.js index 14b101d..8562218 100644 --- a/Parts/Button.js +++ b/Parts/Button.js @@ -22,7 +22,6 @@ function ButtonBase(props) { color = "bg-accent5 hover:bg-accent5-dark" break; default: - color = "" break; } return ( diff --git a/Parts/Input.js b/Parts/Input.js index 37b936a..8eaf093 100644 --- a/Parts/Input.js +++ b/Parts/Input.js @@ -1,10 +1,10 @@ import React from 'react' -function Input(props) { +export default function Input(props) { return ( -
+
{props.title != null ? ( -
) } -function TextArea(props) { +export function TextArea({label, title, name, id, children, ...props}) { return ( -
-