Please use yarn as a package manager.
- When organising a theme first colors should be defined under
src/styles/variables/_colors.scss
- Then it should be added as a variable to
src/styles/variables/_themes.scss
- All the colors in the app should be used with color function as an example:
color(primary-color)
.primary-color
is derived from src/variables/_theme.scss. - useEffect hook which is in
_app.tsx
should be modified in order to select theme.
- Under
src/graphql
there are two folders. One of them isgenerated
react-query hooks other one isoperations
. - All the graphql operation such as queries, mutations should go under here with as
*.graphql
. - After all operations are set run
yarn graphql:codegen
to generate hooks. - Everytime creating new operations please consider the example folder structure under
src/graphql
. - Note that, client is a parameter of every request hook which we can get from
src/store/graphql-client
.
- All types should go under
types
folder. types
should mimicsrc
folder structure.- When defining Props for component it should have the following convention:
ComponentNameProps
. - Every type or interface or enum etc... should start with a capital letter.
- Modals are using global store.
- Every modal should be defined under
components/organisms/ui/modals
. - When creating new modal all required types should be added to modal store.
- Please follow example modal.