Skip to content

Commit

Permalink
refactor: add dinero.js, change price schema (#101)
Browse files Browse the repository at this point in the history
* refactor: add dinero.js, change price schema

* refactor: Move helper functions to the separate file.

* feat: Add tests on dinero helpers functions.

* fix: Fix product creation issues.

Co-authored-by: RomanTkachev <rtkachev@klta.net>
Co-authored-by: Simen A. W. Olsen <cobraz@cobraz.no>
  • Loading branch information
3 people committed May 12, 2021
1 parent e995fff commit d161548
Show file tree
Hide file tree
Showing 14 changed files with 639 additions and 14,644 deletions.
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,8 @@ dist
npm-debug.log*
yarn-debug.log*
yarn-error.log*
yarn.lock
package-lock.json
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
Expand All @@ -148,3 +150,7 @@ yarn-error.log*
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# IDE settings
settings.json
launch.json
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"@types/react-table": "^7.0.25",
"@types/yup": "^0.29.9",
"firebase": "^8.4.3",
"dinero.js": "^1.8.1",
"formik": "^2.2.3",
"framer-motion": "^2.6.15",
"graphql": "^15.3.0",
Expand Down Expand Up @@ -64,6 +65,7 @@
"@graphql-codegen/typescript": "1.19.0",
"@graphql-codegen/typescript-operations": "1.17.13",
"@graphql-codegen/typescript-react-apollo": "2.2.1",
"@types/dinero.js": "^1.6.5",
"@typescript-eslint/eslint-plugin": "^4.11.1",
"@typescript-eslint/parser": "^4.11.1",
"eslint-config-prettier": "^7.1.0",
Expand All @@ -79,4 +81,4 @@
"pre-commit": "yarn lint && yarn test:ci"
}
}
}
}
2 changes: 1 addition & 1 deletion src/components/layout/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ const Sidebar: React.FC = () => {
window.location.reload();
}}
>
<icons.UploadIcon />
<icons.LogoutIcon />
</IconButton>
</Flex>
</Flex>
Expand Down
Loading

0 comments on commit d161548

Please sign in to comment.