Skip to content

Commit

Permalink
Updated to latest version of openjscad-react
Browse files Browse the repository at this point in the history
  • Loading branch information
aeksco committed Dec 21, 2020
1 parent c9d37cb commit 12b6642
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"downloadjs": "^1.4.7",
"lodash.debounce": "^4.0.8",
"next": "^9.0.1",
"openjscad-react": "^0.0.1-canary-06",
"openjscad-react": "^0.0.1-canary-07",
"react": "^16.8.6",
"react-dom": "^16.8.6",
"tailwindcss": "^1.8.10"
Expand Down
4 changes: 2 additions & 2 deletions pages/index.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import React from "react";
import dynamic from "next/dynamic";
import { OpenJSCADProps } from "openjscad-react/dist";
import { OpenJSCADProps } from "openjscad-react";
import { FormGroup } from "../src/FormGroup";

// Dynamic import
const OpenJSCAD: React.ComponentType<
OpenJSCADProps
> = dynamic(() => import("openjscad-react/dist").then((mod) => mod.OpenJSCAD), {
> = dynamic(() => import("openjscad-react").then((mod) => mod.OpenJSCAD), {
ssr: false,
});

Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4203,10 +4203,10 @@ onml@^0.4.1:
dependencies:
sax "^1.2.1"

openjscad-react@^0.0.1-canary-06:
version "0.0.1-canary-06"
resolved "https://registry.yarnpkg.com/openjscad-react/-/openjscad-react-0.0.1-canary-06.tgz#25e562531cbb1572e76694b021a129b5762a2962"
integrity sha512-gwMgWhozl/z9R1/e+byRQ2R/SNuyeF8T0OzbpXFOd8jw+KwokuS5EBnx6yIikJYz8ynKtbL9R+SUxbi2UBD0uA==
openjscad-react@^0.0.1-canary-07:
version "0.0.1-canary-07"
resolved "https://registry.yarnpkg.com/openjscad-react/-/openjscad-react-0.0.1-canary-07.tgz#99b319433bd5433b6440d4225e243ddd8c273238"
integrity sha512-6D0g9Tlv531OBO4O7oyvjrfcCgPXLlfWVDi+v6xDp0mx2N4Y+RyCHkOptPqoYtEn/Ay+gj9Ro5O4fCM7raE6Zg==
dependencies:
"@jscad/csg" "^0.7.0"
"@jscad/stl-serializer" "^0.2.0"
Expand Down

0 comments on commit 12b6642

Please sign in to comment.