-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
40 changed files
with
909 additions
and
612 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
REACT_APP_VERSION=$npm_package_version | ||
REACT_APP_SERVER_URL="http://localhost:3000" | ||
REACT_APP_TARGET_NETWORK=PREPROD | ||
|
||
REACT_APP_EVENT_ID=CIP-1694_Pre_Ratification_4619 | ||
REACT_APP_CATEGORY_ID=CIP-1694_Pre_Ratification_4619 | ||
|
||
REACT_APP_EVENT_BY_ID_REFERENCE_URL=${REACT_APP_SERVER_URL}/api/reference/event | ||
REACT_APP_CAST_VOTE_URL=${REACT_APP_SERVER_URL}/api/vote/cast | ||
REACT_APP_BLOCKCHAIN_TIP_URL=${REACT_APP_SERVER_URL}/api/blockchain/tip | ||
REACT_APP_VOTING_POWER_URL=${REACT_APP_SERVER_URL}/api/account | ||
|
||
REACT_APP_SUPPORTED_WALLETS=flint,eternl,nami,typhon,yoroi,nufi,gerowallet,lace | ||
REACT_APP_ALWAYS_VISIBLE_WALLETS=lace | ||
REACT_APP_EVENT_END_TIME=09-01-2023 | ||
REACT_APP_EVENT_END_TIME_FORMAT=MM-DD-YYYY |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
.toast { | ||
border-radius: 10px; | ||
background: #030321; | ||
color: #fff; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,22 @@ | ||
import React from 'react'; | ||
import { BrowserRouter as Router } from 'react-router-dom'; | ||
import { Toaster } from 'react-hot-toast'; | ||
import CssBaseline from '@mui/material/CssBaseline'; | ||
import { ThemeProvider } from '@mui/material/styles'; | ||
import { Layout } from 'components/common/Layout/Layout'; | ||
import Content from './components/common/Content/Content'; | ||
import { Footer } from './components/common/Footer/Footer'; | ||
import { Header } from './components/common/Header/Header'; | ||
import theme from './common/styles/theme'; | ||
import styles from './App.module.scss'; | ||
|
||
export const App = () => ( | ||
<ThemeProvider theme={theme}> | ||
<Router> | ||
<Layout> | ||
<Header /> | ||
<Content /> | ||
<Footer /> | ||
<Toaster | ||
toastOptions={{ | ||
className: '', | ||
style: { | ||
borderRadius: '10px', | ||
background: '#030321', | ||
color: '#fff', | ||
}, | ||
}} | ||
/> | ||
<CssBaseline /> | ||
</Layout> | ||
</Router> | ||
</ThemeProvider> | ||
<Layout> | ||
<Header /> | ||
<Content /> | ||
<Footer /> | ||
<Toaster | ||
toastOptions={{ | ||
className: styles.toast, | ||
}} | ||
/> | ||
<CssBaseline /> | ||
</Layout> | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,11 @@ | ||
import { configureStore } from '@reduxjs/toolkit'; | ||
import { persistReducer, persistStore } from 'redux-persist'; | ||
import thunk from 'redux-thunk'; | ||
import reduxReset from 'redux-reset'; | ||
import storage from 'redux-persist/lib/storage'; | ||
import userSessionReducer from './userSlice'; | ||
import { State } from './types'; | ||
|
||
const userPersistConfig = { | ||
key: 'user', | ||
storage, | ||
blacklist: ['isLoggedIn'], | ||
}; | ||
|
||
export const store = configureStore({ | ||
reducer: persistReducer(userPersistConfig, userSessionReducer), | ||
export const store = configureStore<State>({ | ||
reducer: { user: userSessionReducer }, | ||
devTools: process.env.NODE_ENV !== 'production', | ||
middleware: [thunk, reduxReset], | ||
}); | ||
|
||
export const persistor = persistStore(store); | ||
|
||
export type RootState = ReturnType<typeof store.getState>; | ||
export type AppDispatch = typeof store.dispatch; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
export interface UserState { | ||
isLoggedIn: boolean; | ||
isVerified: boolean; | ||
termsAndPrivacy: boolean; | ||
error: string; | ||
user?: object; | ||
isConnectWalletModalVisible: boolean; | ||
isVoteSubmittedModalVisible: boolean; | ||
connectedWallet: string; | ||
} | ||
|
||
export interface State { | ||
user: UserState; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
ui/cip-1694/src/components/ConnectWalletModal/ConnectWalletModal.module.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
.dialogTitle { | ||
background: #f5f9ff !important; | ||
padding: 30px 30px 20px 30px !important; | ||
color: #061d3c !important; | ||
font-size: 28px !important; | ||
font-style: normal !important; | ||
font-weight: 600 !important; | ||
line-height: normal !important; | ||
} | ||
|
||
.description { | ||
color: #39486c !important; | ||
font-size: 16px !important; | ||
font-style: normal !important; | ||
font-weight: 400 !important; | ||
line-height: 22px !important; | ||
} | ||
|
||
.dialogContent { | ||
background: #f5f9ff !important; | ||
padding: 0px 30px 30px 30px !important; | ||
} | ||
|
||
.closeBtn { | ||
background: #eee !important; | ||
position: absolute !important; | ||
right: 10px !important; | ||
top: 10px !important; | ||
|
||
.closeIcon { | ||
color: #061d3c !important; | ||
} | ||
} |
Oops, something went wrong.