1
1
import { useAppStore } from "../store" ;
2
2
import { useEffect } from "react" ;
3
3
import { Button } from "@/components/ui/button" ;
4
+ import { exit } from "@tauri-apps/api/process" ;
4
5
5
6
export const MainView = ( ) => {
6
7
const { resetErrors } = useAppStore ( ) ;
@@ -13,24 +14,25 @@ export const MainView = () => {
13
14
< div className = "h-screen p-2 bg-zinc-900" >
14
15
< div className = "pt-1 mb-3 font-bold text-2xl text-center" >
15
16
< p className = "mb-2" > Authorize Discord</ p >
16
- < ul className = "text-sm text-center" >
17
- < li className = "text-zinc-400" >
18
- < p > Overlayed is not affiliated with Discord. Discord is a trademark of Discord Inc.</ p >
19
- </ li >
20
- </ ul >
17
+ < p className = "text-sm text-center text-zinc-400" >
18
+ Overlayed is not affiliated with Discord. Discord is a trademark of Discord Inc.
19
+ </ p >
21
20
< ul className = "flex flex-col pl-10 gap-4 p-4 mt-6 text-xl text-left" >
22
21
< li >
23
22
< p className = "leading-8" > Discord should have opened a popup</ p >
24
23
</ li >
25
24
< li >
26
- < p className = "leading-8" > Click "Authorize" within discord </ p >
25
+ < p className = "leading-8" > Click "Authorize" within Discord </ p >
27
26
</ li >
28
27
< li >
29
28
< p className = "leading-8" > Join a voice channel</ p >
30
29
</ li >
30
+ < li >
31
+ < p className = "leading-8" > Enjoy 🥳</ p >
32
+ </ li >
31
33
</ ul >
32
34
33
- < div className = "pt-8 text-2xl flex items-center justify-center" >
35
+ < div className = "pt-8 text-2xl flex flex-col gap-4 items-center justify-center" >
34
36
< Button
35
37
onClick = { ( ) => {
36
38
// TODO: this is a hack, it should be handled better
@@ -39,6 +41,15 @@ export const MainView = () => {
39
41
>
40
42
Try Again
41
43
</ Button >
44
+
45
+ < Button
46
+ variant = "ghost"
47
+ onClick = { async ( ) => {
48
+ await exit ( ) ;
49
+ } }
50
+ >
51
+ Quit Overlayed
52
+ </ Button >
42
53
</ div >
43
54
</ div >
44
55
</ div >
0 commit comments