Skip to content
This repository has been archived by the owner on Feb 16, 2024. It is now read-only.

Commit

Permalink
change code block types
Browse files Browse the repository at this point in the history
  • Loading branch information
mohab-sameh committed Dec 22, 2023
1 parent dd7c671 commit a5640e8
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions codemods/antd/5/props-changed-migration/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ This codemod changes the way the component props are applied.

### Before

```ts
```TypeScript
import { Tag } from 'antd';

const Component = () => {
Expand All @@ -19,7 +19,7 @@ const Component = () => {

### After

```ts
```TypeScript
import { Tag } from 'antd';

const Component = () => {
Expand Down
4 changes: 2 additions & 2 deletions codemods/antd/5/remove-style-import/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Comment out the style file import from antd (in js file).

### Before

```ts
```TypeScript
import 'antd/es/auto-complete/style';
import 'antd/lib/button/style/index.less';
import 'antd/dist/antd.compact.min.css';
Expand All @@ -16,7 +16,7 @@ import 'antd/dist/antd.compact.min.css';

### After

```ts
```TypeScript
// import 'antd/es/auto-complete/style';
// import 'antd/lib/button/style/index.less';
// import 'antd/dist/antd.compact.min.css';
Expand Down
4 changes: 2 additions & 2 deletions codemods/antd/5/removed-component-migration/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ Replace import for removed component in v5.

### Before

```ts
```TypeScript
import { Avatar, BackTop, Comment, PageHeader } from 'antd';

```

### After

```ts
```TypeScript
import { Comment } from '@ant-design/compatible';
import { PageHeader } from '@ant-design/pro-layout';
import { Avatar, FloatButton } from 'antd';
Expand Down
4 changes: 2 additions & 2 deletions codemods/antd/5/removed-static-method-migration/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Replace notification.close with notification.destroy.

### Before

```ts
```TypeScript
import { message, notification } from 'antd';

const App = () => {
Expand Down Expand Up @@ -36,7 +36,7 @@ const App = () => {

### After

```ts
```TypeScript
import { message, notification } from 'antd';

const App = () => {
Expand Down

0 comments on commit a5640e8

Please sign in to comment.