From 1231bcdcf1f38dba44bdad025f63ef1d38845384 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=8D=C3=B1igo=20Marqu=C3=ADnez=20Prado?= <25435858+inigomarquinez@users.noreply.github.com> Date: Tue, 30 Jan 2024 12:04:06 +0100 Subject: [PATCH] refactor: move builder styles to separate file --- src/builder.js | 10 +--------- src/styles.js | 9 +++++++++ 2 files changed, 10 insertions(+), 9 deletions(-) create mode 100644 src/styles.js diff --git a/src/builder.js b/src/builder.js index 91b07e1..23d82dd 100644 --- a/src/builder.js +++ b/src/builder.js @@ -25,15 +25,7 @@ import QuestionAge from './Questions/Age' import QuestionAutocomplete from './Questions/Autocomplete' import QuestionImageInput from './Questions/ImageInput' -const styles = { - fitContent: { - width: 'fit-content' - }, - fullWidth: { - gridColumnStart: '1', - gridColumnEnd: '3' - } -} +import styles from './styles.js' const FormBuilder = ({ onSubmit: onSubmitForm, diff --git a/src/styles.js b/src/styles.js new file mode 100644 index 0000000..6d6c9d6 --- /dev/null +++ b/src/styles.js @@ -0,0 +1,9 @@ +export default { + fitContent: { + width: 'fit-content' + }, + fullWidth: { + gridColumnStart: '1', + gridColumnEnd: '3' + } +}