Skip to content

Commit

Permalink
refactor: move builder styles to separate file
Browse files Browse the repository at this point in the history
  • Loading branch information
inigomarquinez committed Jan 30, 2024
1 parent e9050b5 commit 1231bcd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
10 changes: 1 addition & 9 deletions src/builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
9 changes: 9 additions & 0 deletions src/styles.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
export default {
fitContent: {
width: 'fit-content'
},
fullWidth: {
gridColumnStart: '1',
gridColumnEnd: '3'
}
}

0 comments on commit 1231bcd

Please sign in to comment.