Skip to content

Commit 0e28b72

Browse files
authored
Merge pull request #18 from erdoganbulut/fix/ant-design-update-migration
Fix build errors due to api change after ant design update
2 parents 377ca3f + 68816f5 commit 0e28b72

4 files changed

Lines changed: 18 additions & 18 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "viterts",
33
"private": true,
4-
"version": "0.2.0",
4+
"version": "0.2.1",
55
"scripts": {
66
"dev": "vite",
77
"build": "tsc && vite build",

src/App.tsx

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,18 @@ import Router from './routes';
44
import './styles/vendors.scss';
55

66
const App = () => (
7-
<div className="App">
8-
<main>
9-
<p>App Works!</p>
10-
<ul>
11-
<li>
12-
<Link to="/">Home</Link>
13-
</li>
14-
<li>
15-
<Link to="/about">About</Link>
16-
</li>
17-
</ul>
18-
<Router />
19-
</main>
20-
</div>
7+
<main>
8+
<p>App Works!</p>
9+
<ul>
10+
<li>
11+
<Link to="/">Home</Link>
12+
</li>
13+
<li>
14+
<Link to="/about">About</Link>
15+
</li>
16+
</ul>
17+
<Router />
18+
</main>
2119
);
2220

2321
export default App;

src/components/partials/Home/Counter/index.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,10 @@ const Counter = () => {
1515

1616
return (
1717
<div>
18-
<InputNumber value={count} onChange={(value: number) => dispatch(setAmount(value))} />
18+
<InputNumber
19+
value={count}
20+
onChange={(value: number | null) => dispatch(setAmount(value || 0))}
21+
/>
1922
<Button onClick={() => dispatch(incrementAsync(1))}>Add Async</Button>
2023
<Button onClick={() => dispatch(incrementIfOdd(1))}>Add If Odd</Button>
2124
</div>

src/styles/vendors.scss

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1+
@import 'antd/dist/reset.css';
12
@import 'bootstrap/dist/css/bootstrap-reboot.css';
23
@import 'bootstrap/dist/css/bootstrap-grid.css';
3-
4-
@import 'antd/dist/antd.css';

0 commit comments

Comments
 (0)