From 3e8500d466b641ef34c24f8b0de8163a44ba7a9e Mon Sep 17 00:00:00 2001 From: jackyzha0 Date: Fri, 5 Mar 2021 22:17:18 -0800 Subject: refactoring css --- frontend/src/components/Inputs/Text.js | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 frontend/src/components/Inputs/Text.js (limited to 'frontend/src/components/Inputs/Text.js') diff --git a/frontend/src/components/Inputs/Text.js b/frontend/src/components/Inputs/Text.js new file mode 100644 index 0000000..866da91 --- /dev/null +++ b/frontend/src/components/Inputs/Text.js @@ -0,0 +1,25 @@ +import CharLimit from "../decorators/CharLimit"; +import React from "react"; +import {Labelled} from "./shared"; + +export const Text = React.forwardRef(({label, id, readOnly, onChange, value, maxLength, autoFocus}, ref) => { + return ( + + + + + ); +}) \ No newline at end of file -- cgit v1.2.3 From 7a671bc96ef06df3da3d2dce3caca559f32c6627 Mon Sep 17 00:00:00 2001 From: jackyzha0 Date: Fri, 5 Mar 2021 23:12:28 -0800 Subject: text area styling --- frontend/src/components/Inputs/Text.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'frontend/src/components/Inputs/Text.js') diff --git a/frontend/src/components/Inputs/Text.js b/frontend/src/components/Inputs/Text.js index 866da91..0a26d42 100644 --- a/frontend/src/components/Inputs/Text.js +++ b/frontend/src/components/Inputs/Text.js @@ -1,15 +1,15 @@ import CharLimit from "../decorators/CharLimit"; import React from "react"; import {Labelled} from "./shared"; +import {Input} from "../Form/Input"; export const Text = React.forwardRef(({label, id, readOnly, onChange, value, maxLength, autoFocus}, ref) => { return ( - Date: Sat, 6 Mar 2021 09:44:00 -0800 Subject: add more css mixins --- frontend/src/components/Inputs/Text.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'frontend/src/components/Inputs/Text.js') diff --git a/frontend/src/components/Inputs/Text.js b/frontend/src/components/Inputs/Text.js index 0a26d42..514ab78 100644 --- a/frontend/src/components/Inputs/Text.js +++ b/frontend/src/components/Inputs/Text.js @@ -1,6 +1,6 @@ import CharLimit from "../decorators/CharLimit"; import React from "react"; -import {Labelled} from "./shared"; +import {Labelled} from "../decorators/Labelled"; import {Input} from "../Form/Input"; export const Text = React.forwardRef(({label, id, readOnly, onChange, value, maxLength, autoFocus}, ref) => { -- cgit v1.2.3 From 75e8bdd2d4cdaefe28ed40a7735c993f98d15754 Mon Sep 17 00:00:00 2001 From: jackyzha0 Date: Sat, 6 Mar 2021 16:32:09 -0800 Subject: refactor form -> common --- frontend/src/components/Inputs/Text.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'frontend/src/components/Inputs/Text.js') diff --git a/frontend/src/components/Inputs/Text.js b/frontend/src/components/Inputs/Text.js index 514ab78..600e653 100644 --- a/frontend/src/components/Inputs/Text.js +++ b/frontend/src/components/Inputs/Text.js @@ -1,7 +1,7 @@ import CharLimit from "../decorators/CharLimit"; import React from "react"; import {Labelled} from "../decorators/Labelled"; -import {Input} from "../Form/Input"; +import {Input} from "../Common/Input"; export const Text = React.forwardRef(({label, id, readOnly, onChange, value, maxLength, autoFocus}, ref) => { return ( -- cgit v1.2.3