Change warnings & buttons (#160)

This commit is contained in:
Maria Rushkova 2021-07-27 10:31:07 +02:00 committed by GitHub
parent 202d8200e8
commit c500e98599
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 15 additions and 11 deletions

View File

@ -58,13 +58,15 @@ export function RemoveAmountPicker({ community, availableAmount, setShowConfirmM
icon="💰"
text={`Not enough SNT to start a vote for this community. A new vote for ${community.name} requires at least 10,000 SNT available.`}
/>
<ConfirmBtn
onClick={() => {
setShowConfirmModal(false)
}}
>
OK, lets move on! <span>🤙</span>
</ConfirmBtn>
{window.innerWidth > 600 && (
<ConfirmBtn
onClick={() => {
setShowConfirmModal(false)
}}
>
OK, lets move on! <span>🤙</span>
</ConfirmBtn>
)}
</WarningWrapRemoval>
)
}

View File

@ -26,7 +26,8 @@ const VoteWarning = styled.div`
margin-top: 32px;
@media (max-width: 600px) {
margin-top: 0;
justify-content: flex-start;
margin-top: 24px;
}
& > span {

View File

@ -139,7 +139,7 @@ const VoteBtnFinal = styled(VoteBtn)`
const CardVoteBottom = styled.div`
display: flex;
justify-content: flex-end;
justify-content: center;
align-items: center;
`

View File

@ -17,6 +17,7 @@ import { ConnectMobile } from './ConnectMobile'
import { HistoryLink } from './CardVoteMobile'
import { useEthers } from '@usedapp/core'
import { useGetCurrentVoting } from '../hooks/useGetCurrentVoting'
import { ColumnFlexDiv } from '../constants/styles'
export function FeatureMobile() {
const { publicKey } = useParams<{ publicKey: string }>()
@ -54,11 +55,11 @@ export function FeatureMobile() {
Feature this community! <span style={{ fontSize: '20px' }}></span>
</FeatureBtn>
{currentVoting && (
<div>
<ColumnFlexDiv>
<VoteSendingBtn onClick={() => history.push(`/votingRoom/${currentVoting.ID}`)}>
Removal vote in progress
</VoteSendingBtn>
</div>
</ColumnFlexDiv>
)}
{!isDisabled && (
<HistoryLink