Skip to content

Commit

Permalink
fix: default layout func (#37)
Browse files Browse the repository at this point in the history
Perform an optional-chain assignment inside the component constructor
instead of having a default parameter defined in its interface.
  • Loading branch information
castarco authored Sep 9, 2023
2 parents fffd2ac + bc9d108 commit 404f30b
Show file tree
Hide file tree
Showing 4 changed files with 774 additions and 771 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,5 @@ jobs:
run: pnpm build
- name: Run Tests
run: pnpm test:coverage
- name: Publint
run: pnpm publint
15 changes: 8 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
{
"name": "@beautiful-tree/react",
"version": "0.1.0",
"version": "0.1.1",
"private": false,
"author": "Andres Correa Casablanca <[email protected]>",
"license": "MIT",
"main": "./dist/beautiful-tree.cjs",
"module": "./dist/beautiful-tree.mjs",
"types": "./dist/beautiful-tree.d.ts",
"exports": {
".": {
"types": "./dist/beautiful-tree.d.ts",
Expand Down Expand Up @@ -51,12 +52,12 @@
"@storybook/react-vite": "^7.4.0",
"@storybook/testing-library": "^0.2.0",
"@testing-library/react": "^14.0.0",
"@types/node": "^20.5.8",
"@types/node": "^20.6.0",
"@types/react": "^18.2.21",
"@types/react-dom": "^18.2.7",
"@typescript-eslint/parser": "^6.5.0",
"@vitest/coverage-v8": "^0.34.3",
"eslint": "^8.48.0",
"@typescript-eslint/parser": "^6.6.0",
"@vitest/coverage-v8": "^0.34.4",
"eslint": "^8.49.0",
"eslint-plugin-react": "^7.33.2",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-refresh": "^0.4.3",
Expand All @@ -66,11 +67,11 @@
"publint": "^0.2.2",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"rollup": "^3.28.1",
"rollup": "^3.29.0",
"rollup-plugin-dts": "^5.3.1",
"storybook": "^7.4.0",
"typescript": "^5.2.2",
"vitest": "^0.34.3"
"vitest": "^0.34.4"
},
"peerDependencies": {
"react": "^18.2.0",
Expand Down
Loading

0 comments on commit 404f30b

Please sign in to comment.