diff --git a/packages/fakeyou.com/src/components/common/TempInput/Input.scss b/packages/fakeyou.com/src/components/common/TempInput/Input.scss new file mode 100644 index 0000000000..7dc777225f --- /dev/null +++ b/packages/fakeyou.com/src/components/common/TempInput/Input.scss @@ -0,0 +1,7 @@ +input { + margin-bottom: 1rem !important; + + :last-child { + margin-bottom: 0 !important; + } +} diff --git a/packages/fakeyou.com/src/components/common/TempInput/TempInput.tsx b/packages/fakeyou.com/src/components/common/TempInput/TempInput.tsx index bf743ce1fc..a349db41b4 100644 --- a/packages/fakeyou.com/src/components/common/TempInput/TempInput.tsx +++ b/packages/fakeyou.com/src/components/common/TempInput/TempInput.tsx @@ -1,6 +1,7 @@ import React from "react"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { IconDefinition } from "@fortawesome/fontawesome-svg-core"; +import "./Input.scss"; interface InputProps extends React.InputHTMLAttributes { icon?: IconDefinition; @@ -23,7 +24,7 @@ export default function TempInput({ {label} )} -
+
{icon && ( )} diff --git a/packages/fakeyou.com/src/components/common/TempSelect/Select.scss b/packages/fakeyou.com/src/components/common/TempSelect/Select.scss new file mode 100644 index 0000000000..94f46b688f --- /dev/null +++ b/packages/fakeyou.com/src/components/common/TempSelect/Select.scss @@ -0,0 +1,7 @@ +.fy-select { + margin-bottom: 1rem !important; + + :last-child { + margin-bottom: 0 !important; + } +} diff --git a/packages/fakeyou.com/src/components/common/TempSelect/TempSelect.tsx b/packages/fakeyou.com/src/components/common/TempSelect/TempSelect.tsx index 7ac093c8e8..fd7edb0f78 100644 --- a/packages/fakeyou.com/src/components/common/TempSelect/TempSelect.tsx +++ b/packages/fakeyou.com/src/components/common/TempSelect/TempSelect.tsx @@ -3,6 +3,7 @@ import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { IconDefinition } from "@fortawesome/fontawesome-svg-core"; import "../Select/Select.scss"; import ReactSelect, { Props as ReactSelectProps } from "react-select"; +import "./Select.scss"; export interface Option { value: string | number | boolean; @@ -35,7 +36,7 @@ export default function Select({ options.find((option: any) => option.value === value)?.label || ""; const onChange = ({ value }: any) => inChange({ target: { value, name, type: "select" } }); - const className = `form-group${icon ? " input-icon" : ""}${ + const className = `fy-select ${icon ? " input-icon" : ""}${ small ? " select-small" : "" }`; const classNames = { diff --git a/packages/fakeyou.com/src/components/common/TempTextArea/TempTextArea.tsx b/packages/fakeyou.com/src/components/common/TempTextArea/TempTextArea.tsx index 9c86b75baf..0cdf919de2 100644 --- a/packages/fakeyou.com/src/components/common/TempTextArea/TempTextArea.tsx +++ b/packages/fakeyou.com/src/components/common/TempTextArea/TempTextArea.tsx @@ -1,4 +1,5 @@ import React from "react"; +import "./TextArea.scss"; interface TextAreaProps extends React.TextareaHTMLAttributes { @@ -20,9 +21,7 @@ export default function TempTextArea({ {label} )} -
-