1
1
import Layout from "@components/Layout" ;
2
2
import Page from "@components/Page" ;
3
3
import { useTheme } from "@hooks/useTheme" ;
4
- import { Box , Button , Card , Divider , Typography } from "@mui/material" ;
4
+ import { Box , Button , Divider , Typography } from "@mui/material" ;
5
5
6
6
const lnreaderPluginsRepo =
7
7
"https://raw.githubusercontent.com/LNReader/lnreader-plugins/plugins/v3.0.0/.dist/plugins.min.json" ;
8
8
9
9
export default function Plugins ( ) {
10
10
const theme = useTheme ( ) ;
11
- const isAndroid = / a n d r o i d / i. test ( navigator . userAgent ) ;
12
11
13
12
return (
14
13
< Layout >
@@ -24,46 +23,26 @@ export default function Plugins() {
24
23
< b > LNReader</ b > maintains only one official repository; any other
25
24
repositories are unofficial and have no affiliation with us.
26
25
</ Typography >
27
- { isAndroid ? (
28
- < Box sx = { { my : 2 , textAlign : "center" } } >
29
- < Button
30
- variant = "contained"
31
- sx = { {
32
- borderRadius : 12 ,
33
- background : theme . primaryContainer ,
34
- color : theme . onPrimaryContainer ,
35
- textTransform : "none" ,
36
- } }
37
- href = {
38
- "lnreader://repo/add?url=" +
39
- encodeURIComponent ( lnreaderPluginsRepo )
40
- }
41
- >
42
- Add repository
43
- </ Button >
44
- < Typography sx = { { mt : 2 } } >
45
- Requires < b > LNReader 2.0.0</ b > or newer.
46
- </ Typography >
47
- </ Box >
48
- ) : (
49
- < Card
26
+ < Box sx = { { my : 2 , textAlign : "center" } } >
27
+ < Button
28
+ variant = "contained"
50
29
sx = { {
51
- bgcolor : theme . tertiaryContainer ,
52
- my : 2 ,
53
- p : 2 ,
54
- borderRadius : 2 ,
30
+ borderRadius : 12 ,
31
+ background : theme . primaryContainer ,
32
+ color : theme . onPrimaryContainer ,
33
+ textTransform : "none" ,
55
34
} }
35
+ href = {
36
+ "lnreader://repo/add?url=" +
37
+ encodeURIComponent ( lnreaderPluginsRepo )
38
+ }
56
39
>
57
- < Typography sx = { { mb : 2 , fontWeight : "600" } } >
58
- Unsupported operating system
59
- </ Typography >
60
- < Typography sx = { { fontSize : 16 } } >
61
- < b > LNReader</ b > is an < b > Android app</ b > only. Use an{ " " }
62
- < b > Android</ b > device with < b > LNReader</ b > installed to add
63
- this extension repo.
64
- </ Typography >
65
- </ Card >
66
- ) }
40
+ Add repository
41
+ </ Button >
42
+ < Typography sx = { { mt : 2 } } >
43
+ Requires < b > LNReader 2.0.0</ b > or newer.
44
+ </ Typography >
45
+ </ Box >
67
46
< Divider />
68
47
</ Box >
69
48
}
0 commit comments