This repository has been archived by the owner on Sep 16, 2024. It is now read-only.
generated from bcgov/quickstart-openshift
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: [BB-191] Feature** Fields and Soil Stage 2 (#192)
* primary changes * format * configured button to accept children * format? * organized logic * format * last commit for the day, scratch again tomorrow * ugh * scratched earlier work, simpler workflow with dividers * removed fieldsInfo * forgot to save * remoevd setField hook * fixed some bugs, finished styling * Removed formik and values, don't need it anymore * Added id for fields * switched button types for add and next * format * separated into components, formik stays the same * forgot to save * imported StyledButtonGroupContainer * changed h4 into h2 * set initial values to empty for second adding new field * format * cleanup * deploy again * removed comment deploy * button styling consistency fixed * format * Created a function for buttonSizes using switch * format * error message style defined * format * minor revision done, ready for another review * format
- Loading branch information
1 parent
3a27580
commit c9f8f30
Showing
17 changed files
with
460 additions
and
151 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
const getButtonSize = (size: string, isDesktop: boolean): string => { | ||
let buttonSize; | ||
|
||
switch (size) { | ||
case 'sm': | ||
buttonSize = '62px'; | ||
break; | ||
case 'md': | ||
buttonSize = '178px'; | ||
break; | ||
case 'lg': | ||
buttonSize = isDesktop ? '483px' : '327px'; | ||
break; | ||
default: | ||
buttonSize = '100%'; | ||
break; | ||
} | ||
|
||
return buttonSize; | ||
}; | ||
export default getButtonSize; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.