Skip to content

Commit

Permalink
fix: ensure demo build (#1821)
Browse files Browse the repository at this point in the history
* fix: ensure demo build

* fix: update style
  • Loading branch information
berviantoleo authored May 6, 2023
1 parent ac9bf5b commit eb4621f
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 7 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@ jobs:
run: |
yarn docs
yarn lerna run docs --scope @berviantoleo/react-multi-crop
- name: Try Build Demo
run: yarn lerna run build --scope @berviantoleo/react-multi-crop-demo
env:
SKIP_PREFLIGHT_CHECK: true
PUBLIC_URL: /
# TODO; will give the docs to artifacts
- name: Cypress run
uses: cypress-io/github-action@v5
Expand Down
2 changes: 1 addition & 1 deletion examples/demo/src/components/ActionButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default function ActionButton(): JSX.Element {
record={{
clippings: [
{
id: 1,
id: "1",
rect: { x1: 0.0, y1: 0.0, x2: 0.2, y2: 0.2 },
rectPx: {},
},
Expand Down
2 changes: 1 addition & 1 deletion examples/demo/src/components/Default.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default function Default(): JSX.Element {
record={{
clippings: [
{
id: 1,
id: "1",
rect: { x1: 0.0, y1: 0.0, x2: 0.2, y2: 0.2 },
rectPx: {},
},
Expand Down
10 changes: 5 additions & 5 deletions examples/demo/src/components/Readonly.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,27 +39,27 @@ export default function Readonly(): JSX.Element {
record={{
clippings: [
{
id: 1,
id: "1",
rect: { x1: 0.0, y1: 0.0, x2: 0.2, y2: 0.2 },
rectPx: {},
},
{
id: 2,
id: "2",
rect: { x1: 0.5, y1: 0.5, x2: 0.7, y2: 0.7 },
rectPx: {},
},
{
id: 3,
id: "3",
rect: { x1: 0.3, y1: 0.3, x2: 0.5, y2: 0.5 },
rectPx: {},
},
{
id: 4,
id: "4",
rect: { x1: 0.7, y1: 0.7, x2: 1.0, y2: 1.0 },
rectPx: {},
},
{
id: 5,
id: "5",
rect: { x1: 0.2, y1: 0.2, x2: 0.3, y2: 0.3 },
rectPx: {},
},
Expand Down

0 comments on commit eb4621f

Please sign in to comment.