Skip to content

Commit 864ee25

Browse files
committed
chore: upgrade Button
1 parent 6cafce3 commit 864ee25

File tree

2 files changed

+9
-27
lines changed

2 files changed

+9
-27
lines changed

apps/react-app/src/App.tsx

Lines changed: 5 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,13 @@
1-
import { useState } from 'react'
2-
import reactLogo from './assets/react.svg'
3-
import viteLogo from '/vite.svg'
1+
import { Button } from "@/components/ui/button"
42
import './App.css'
53

64
function App() {
7-
const [count, setCount] = useState(0)
5+
86

97
return (
10-
<>
11-
<div>
12-
<a href="https://vite.dev" target="_blank">
13-
<img src={viteLogo} className="logo" alt="Vite logo" />
14-
</a>
15-
<a href="https://react.dev" target="_blank">
16-
<img src={reactLogo} className="logo react" alt="React logo" />
17-
</a>
18-
</div>
19-
<h1>Vite + React</h1>
20-
<div className="card">
21-
<button onClick={() => setCount((count) => count + 1)}>
22-
count is {count}
23-
</button>
24-
<p>
25-
Edit <code>src/App.tsx</code> and save to test HMR
26-
</p>
27-
</div>
28-
<p className="read-the-docs">
29-
Click on the Vite and React logos to learn more
30-
</p>
31-
</>
8+
<div className="flex min-h-svh flex-col items-center justify-center">
9+
<Button>Click me</Button>
10+
</div>
3211
)
3312
}
3413

apps/react-app/src/components/ui/button.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,7 @@ function Button({
5757
)
5858
}
5959

60-
export { Button, buttonVariants }
60+
export {
61+
Button,
62+
buttonVariants
63+
}

0 commit comments

Comments
 (0)