Skip to content

Commit 8b75fd4

Browse files
committed
modify example component name
1 parent 7cb38d5 commit 8b75fd4

File tree

2 files changed

+16
-13
lines changed

2 files changed

+16
-13
lines changed

.github/workflows/deploy.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ name: Deploy Storybook to Pages
22

33
on:
44
push:
5+
branches:
6+
- storybook
57
tags:
68
- 'v[0-9]+.[0-9]+.[0-9]+'
79

@@ -27,9 +29,9 @@ jobs:
2729

2830
- name: Replace local links with actual versions
2931
run: |
30-
sed -i 's#"@acrool/react-skeleton": "link:.."#"@acrool/react-dialog": "latest"#' package.json
31-
sed -i 's#"react": "link:../node_modules/react"#"react": "^18.2.0"#' package.json
32-
sed -i 's#"react-dom": "link:../node_modules/react-dom"#"react-dom": "^18.2.0"#' package.json
32+
sed -i 's#"@acrool/react-dialog": "link:.."#"@acrool/react-dialog": "latest"#' package.json
33+
sed -i 's#"react": "link:../node_modules/react"#"react": "^18.0.0"#' package.json
34+
sed -i 's#"react-dom": "link:../node_modules/react-dom"#"react-dom": "^18.0.0"#' package.json
3335
3436
- name: Install dependencies
3537
run: yarn install
@@ -41,6 +43,6 @@ jobs:
4143
run: yarn global add wrangler
4244

4345
- name: Deploy to Cloudflare Pages
44-
run: wrangler pages deploy ./storybook-static --project-name=acrool-react-modal --branch main
46+
run: wrangler pages deploy ./storybook-static --project-name=acrool-react-img --branch main
4547
env:
4648
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}

example/src/components/primary/Dailog/Dialog.stories.tsx renamed to example/src/components/primary/dialog/dialog.stories.tsx

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1+
import {dialog} from '@acrool/react-dialog';
12
import type {Meta, StoryObj} from '@storybook/react';
2-
import {dialog} from "@acrool/react-dialog";
3-
import Button from "../../atoms/Button";
3+
4+
import Button from '../../atoms/Button';
45

56

67

78
const meta = {
8-
title: 'Primary/Dialog',
9+
title: 'Primary/dialog',
910
parameters: {
1011
layout: 'centered',
1112
actions: {argTypesRegex: '^on.*'},
@@ -51,7 +52,7 @@ export const WithSuccess: Story = {
5152
dialog.success('You have been logged in successfully',{
5253
code: 'SYS_ERR_500',
5354
path: 'auth/sign',
54-
})
55+
});
5556
}}
5657
>
5758
Show
@@ -71,7 +72,7 @@ export const WithInfo: Story = {
7172
<Button
7273
color="primary"
7374
onClick={() => {
74-
dialog.info('You have a new message')
75+
dialog.info('You have a new message');
7576
}}
7677
>
7778
Show
@@ -90,7 +91,7 @@ export const WithWarning: Story = {
9091
<Button
9192
color="primary"
9293
onClick={() => {
93-
dialog.warning('Please check if your parameter settings are correct?')
94+
dialog.warning('Please check if your parameter settings are correct?');
9495
}}
9596
>
9697
Show
@@ -110,7 +111,7 @@ export const WithError: Story = {
110111
<Button
111112
color="primary"
112113
onClick={() => {
113-
dialog.error('Sorry, the account password you entered is wrong')
114+
dialog.error('Sorry, the account password you entered is wrong');
114115
}}
115116
>
116117
Show
@@ -144,7 +145,7 @@ export const WithConfirm: Story = {
144145
dialog.success('The answer is correct');
145146
});
146147
}
147-
})
148+
});
148149
}}
149150
>
150151
Show
@@ -167,7 +168,7 @@ export const WithErrorCode: Story = {
167168
{
168169
code: '@SYS_ERR_500',
169170
path: 'auth/sign',
170-
})
171+
});
171172
}}
172173
>
173174
Show

0 commit comments

Comments
 (0)