diff --git a/packages/omgx/wallet-frontend/src/components/Proposal/Proposal.js b/packages/omgx/wallet-frontend/src/components/Proposal/Proposal.js index 80ed4ae227605..e062586dc47ab 100644 --- a/packages/omgx/wallet-frontend/src/components/Proposal/Proposal.js +++ b/packages/omgx/wallet-frontend/src/components/Proposal/Proposal.js @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ import React, { useState, useEffect } from 'react'; -import {Typography} from '@material-ui/core'; +import {Typography, useTheme} from '@material-ui/core'; import { useDispatch } from 'react-redux'; @@ -25,10 +25,14 @@ import Button from 'components/button/Button'; import * as styles from './Proposal.module.scss'; +import { backgroundLight400 } from 'index.scss'; + function Proposal({ proposal, }) { + const dispatch = useDispatch() + const theme = useTheme() const [dropDownBox, setDropDownBox] = useState(false) const [dropDownBoxInit, setDropDownBoxInit] = useState(true) @@ -59,7 +63,6 @@ function Proposal({ const FormatDescription = ({description}) =>{ if(!!description.includes('@@')) { let descList = description.split('@@') - //console.log("descList",descList) if(descList[1] !== '') { //should validate http link return <>{descList[0]} MORE DETAILS > @@ -74,7 +77,7 @@ function Proposal({ className={styles.proposalCard} style={{ - background: 'linear-gradient(132.17deg, rgba(255, 255, 255, 0.1) 0.24%, rgba(255, 255, 255, 0.03) 94.26%)', + background: `${theme.palette.mode === 'light' ? backgroundLight400 : 'linear-gradient(132.17deg, rgba(255, 255, 255, 0.1) 0.24%, rgba(255, 255, 255, 0.03) 94.26%)'}`, borderRadius: '12px' }}> diff --git a/packages/omgx/wallet-frontend/src/components/Proposal/Proposal.module.scss b/packages/omgx/wallet-frontend/src/components/Proposal/Proposal.module.scss index 55e0d9d691d9b..35ccfb53f8fbb 100644 --- a/packages/omgx/wallet-frontend/src/components/Proposal/Proposal.module.scss +++ b/packages/omgx/wallet-frontend/src/components/Proposal/Proposal.module.scss @@ -9,30 +9,28 @@ $boxDropDownHeight: 50px; padding: 5px; padding-left: 10px; border-radius: 8px; - background: red; .proposalHeader { display: flex; justify-content: space-between; .title { font-size: 1.1em; - color: $white; p{ margin: 0px; } .muted { - color: $white700; + opacity: 0.7; } } } .proposalContent { display: flex; justify-content: flex-start; - color: $white700; + opacity: 0.7; font-weight: 700; } .vote { min-width: 120px; - color: $white700; + opacity: 0.7; font-weight: 700; } } @@ -103,5 +101,4 @@ $boxDropDownHeight: 50px; .href { text-decoration: underline; - color: white } \ No newline at end of file diff --git a/packages/omgx/wallet-frontend/src/components/transaction/Transaction.module.scss b/packages/omgx/wallet-frontend/src/components/transaction/Transaction.module.scss index 0ac733e968ab8..dd95b8d502e5e 100644 --- a/packages/omgx/wallet-frontend/src/components/transaction/Transaction.module.scss +++ b/packages/omgx/wallet-frontend/src/components/transaction/Transaction.module.scss @@ -245,7 +245,7 @@ $boxDropDownHeight: 50px; } .muted { - color: $white700; + opacity: 0.7; margin: 0; padding: 0; } diff --git a/packages/omgx/wallet-frontend/src/containers/dao/Dao.js b/packages/omgx/wallet-frontend/src/containers/dao/Dao.js index aef5bd7fc168d..bf8eab051cbde 100644 --- a/packages/omgx/wallet-frontend/src/containers/dao/Dao.js +++ b/packages/omgx/wallet-frontend/src/containers/dao/Dao.js @@ -91,7 +91,12 @@ function DAO() {