Skip to content

Commit

Permalink
doc: Update app (#39572)
Browse files Browse the repository at this point in the history
* feat: update doc

* Update basic.md

Co-authored-by: lijianan <574980606@qq.com>
  • Loading branch information
heiyu4585 and li-jia-nan committed Dec 15, 2022
1 parent 49e8c13 commit 01ae089
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions components/app/context.ts
Expand Up @@ -11,9 +11,9 @@ export interface useAppProps {
}

const AppContext = React.createContext<useAppProps>({
message: {} as MessageInstance,
notification: {} as NotificationInstance,
modal: {} as ModalType,
});
message: {},
notification: {},
modal: {},
} as useAppProps);

export default AppContext;
4 changes: 2 additions & 2 deletions components/app/demo/basic.md
@@ -1,7 +1,7 @@
## zh-CN

获取 `message``notification``modal` 静态方法。
获取 `message`, `notification`, `modal` 静态方法。

## en-US

Static method for `message`,`notification`,`modal`.
Static method for `message`, `notification`, `modal`.
2 changes: 1 addition & 1 deletion components/app/index.en-US.md
Expand Up @@ -49,7 +49,7 @@ export default MyApp;

Note: App.useApp must be available under App.

### 与 ConfigProvider 先后顺序
### Sequence with ConfigProvider

The App component can only use the token in the `ConfigProvider`, if you need to use the Token, the ConfigProvider and the App component must appear in pairs.

Expand Down

0 comments on commit 01ae089

Please sign in to comment.