summaryrefslogtreecommitdiff
path: root/client/src/components
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/components')
-rw-r--r--client/src/components/Input/Input.jsx7
-rw-r--r--client/src/components/Input/Input.module.css3
-rw-r--r--client/src/components/SubmitButton/SubmitButton.jsx4
3 files changed, 10 insertions, 4 deletions
diff --git a/client/src/components/Input/Input.jsx b/client/src/components/Input/Input.jsx
index 5987e27..08e8fab 100644
--- a/client/src/components/Input/Input.jsx
+++ b/client/src/components/Input/Input.jsx
@@ -1,7 +1,7 @@
import React from 'react'
import styles from './Input.module.css'
-const Input = ({ label, id, value, type, name, onChange, placeholder }) => {
+const Input = ({ label, id, value, type, name, onChange, placeholder, maxLength, pattern, minLength, onInvalid, onValid }) => {
return (
<div className={styles.input}>
<div className={styles.input__container}>
@@ -15,6 +15,11 @@ const Input = ({ label, id, value, type, name, onChange, placeholder }) => {
onChange={onChange}
required
placeholder={placeholder}
+ pattern={pattern}
+ maxLength={maxLength}
+ minLength={minLength}
+ onInvalid={onInvalid}
+ onValid={onValid}
/>
</div>
</div>
diff --git a/client/src/components/Input/Input.module.css b/client/src/components/Input/Input.module.css
index cafb5f1..b02591c 100644
--- a/client/src/components/Input/Input.module.css
+++ b/client/src/components/Input/Input.module.css
@@ -13,7 +13,8 @@
.input__field {
width: 300px;
margin: 10px 0px;
- padding: 20px 10px;
+ padding: 18px 10px;
border: 3px solid;
border-radius: 10px;
+ font-size: 1rem;
}
diff --git a/client/src/components/SubmitButton/SubmitButton.jsx b/client/src/components/SubmitButton/SubmitButton.jsx
index e1ba305..4437efa 100644
--- a/client/src/components/SubmitButton/SubmitButton.jsx
+++ b/client/src/components/SubmitButton/SubmitButton.jsx
@@ -1,10 +1,10 @@
import React from 'react'
import styles from './SubmitButton.module.css'
-const SubmitButton = () => {
+const SubmitButton = ({ onClick }) => {
return (
<>
- <button className={styles.submit} type="submit">
+ <button onClick={onClick} className={styles.submit} type="submit">
<img
className={styles.submit__image}
src={`${process.env.PUBLIC_URL}/assets/images/white-check.svg`}