@@ -20,6 +20,7 @@ import {
20
20
} from "@solana/wallet-adapter-react" ;
21
21
22
22
import { WalletDialogProvider } from "@solana/wallet-adapter-material-ui" ;
23
+ import { createTheme , ThemeProvider } from "@material-ui/core" ;
23
24
24
25
const treasury = new anchor . web3 . PublicKey (
25
26
process . env . REACT_APP_TREASURY_ADDRESS !
@@ -42,6 +43,31 @@ const startDateSeed = parseInt(process.env.REACT_APP_CANDY_START_DATE!, 10);
42
43
43
44
const txTimeout = 30000 ; // milliseconds (confirm this works for your project)
44
45
46
+ const theme = createTheme ( {
47
+ palette : {
48
+ type : 'dark' ,
49
+ } ,
50
+ overrides : {
51
+ MuiButtonBase : {
52
+ root : {
53
+ justifyContent : 'flex-start' ,
54
+ } ,
55
+ } ,
56
+ MuiButton : {
57
+ root : {
58
+ textTransform : undefined ,
59
+ padding : '12px 16px' ,
60
+ } ,
61
+ startIcon : {
62
+ marginRight : 8 ,
63
+ } ,
64
+ endIcon : {
65
+ marginLeft : 8 ,
66
+ } ,
67
+ } ,
68
+ } ,
69
+ } ) ;
70
+
45
71
const App = ( ) => {
46
72
const endpoint = useMemo ( ( ) => clusterApiUrl ( network ) , [ ] ) ;
47
73
@@ -57,20 +83,22 @@ const App = () => {
57
83
) ;
58
84
59
85
return (
60
- < ConnectionProvider endpoint = { endpoint } >
61
- < WalletProvider wallets = { wallets } autoConnect >
62
- < WalletDialogProvider >
63
- < Home
64
- candyMachineId = { candyMachineId }
65
- config = { config }
66
- connection = { connection }
67
- startDate = { startDateSeed }
68
- treasury = { treasury }
69
- txTimeout = { txTimeout }
70
- />
71
- </ WalletDialogProvider >
72
- </ WalletProvider >
73
- </ ConnectionProvider >
86
+ < ThemeProvider theme = { theme } >
87
+ < ConnectionProvider endpoint = { endpoint } >
88
+ < WalletProvider wallets = { wallets } autoConnect >
89
+ < WalletDialogProvider >
90
+ < Home
91
+ candyMachineId = { candyMachineId }
92
+ config = { config }
93
+ connection = { connection }
94
+ startDate = { startDateSeed }
95
+ treasury = { treasury }
96
+ txTimeout = { txTimeout }
97
+ />
98
+ </ WalletDialogProvider >
99
+ </ WalletProvider >
100
+ </ ConnectionProvider >
101
+ </ ThemeProvider >
74
102
) ;
75
103
} ;
76
104
0 commit comments