From aa044722776d0cce75e58555746c15a140c16444 Mon Sep 17 00:00:00 2001 From: enes Date: Fri, 16 Aug 2024 11:08:03 +0200 Subject: [PATCH] refactor(create-page): styling --- src/pages/create/index.tsx | 143 +++++++++++++---------------- src/pages/create/style.module.scss | 19 ++-- 2 files changed, 78 insertions(+), 84 deletions(-) diff --git a/src/pages/create/index.tsx b/src/pages/create/index.tsx index 36e6584..4d292b2 100644 --- a/src/pages/create/index.tsx +++ b/src/pages/create/index.tsx @@ -6,7 +6,6 @@ import { IconButton, InputLabel, MenuItem, - Paper, Select, Table, TableBody, @@ -705,99 +704,87 @@ export const CreatePage = () => { +
setTitle(e.target.value)} variant="outlined" /> - - - handleSelectFiles(value)} - /> - - {selectedFiles.length > 0 && ( -
    - {selectedFiles.map((file, index) => ( -
  • - {file.name} - handleRemoveFile(file)}> - {' '} - -
  • - ))} -
- )} -
- +
    + {selectedFiles.length > 0 && + selectedFiles.map((file, index) => ( +
  • + {file.name} + handleRemoveFile(file)}> + {' '} + +
  • + ))} +
+ handleSelectFiles(value)} + /> +
} right={ - <> +
Add Counterparts - - - setUserInput(e.target.value)} - helperText={error} - error={!!error} - /> - - Role - - - - + setUserInput(e.target.value)} + helperText={error} + error={!!error} + /> + + Role + + + + - - +
+ + - - +
+
} > { return ( - + diff --git a/src/pages/create/style.module.scss b/src/pages/create/style.module.scss index 9304618..527ef5c 100644 --- a/src/pages/create/style.module.scss +++ b/src/pages/create/style.module.scss @@ -1,11 +1,18 @@ @import '../../styles/colors.scss'; -.container { - .inputBlock { - display: flex; - flex-direction: column; - gap: 25px; - } +.flexWrap { + display: flex; + flex-direction: column; + gap: 15px; +} + +.paperGroup { + border-radius: 4px; + background: white; + padding: 15px; + display: flex; + flex-direction: column; + gap: 15px; } .subHeader {