style updates

This commit is contained in:
fmtabbara
2021-12-07 21:24:16 +00:00
parent a4c9a81399
commit 7b04093cc5
9 changed files with 16 additions and 17 deletions
+6 -9
View File
@@ -1,6 +1,6 @@
import React from 'react'
import { Card, CardContent, CardHeader } from '@mui/material'
import { styled } from '@mui/styles'
import { styled } from '@mui/material/styles'
export const NymCard: React.FC<{
title: string
@@ -20,21 +20,18 @@ export const NymCard: React.FC<{
sx={{
color: 'nym.background.dark',
padding: 2.5,
borderBottom: (theme) => `1px solid ${theme.palette.grey[100]}`,
borderBottom: (theme) => `1px solid ${theme.palette.grey[200]}`,
}}
/>
{noPadding ? (
<CardContentNoPadding>{children}</CardContentNoPadding>
) : (
<CardContent>{children}</CardContent>
)}
{noPadding ? <CardContentNoPadding>{children}</CardContentNoPadding> : <CardContent>{children}</CardContent>}
</Card>
)
}
const CardContentNoPadding = styled(CardContent)({
const CardContentNoPadding = styled(CardContent)(({ theme }) => ({
background: theme.palette.grey[50],
padding: 0,
'&:last-child': {
paddingBottom: 0,
},
})
}))
+1 -1
View File
@@ -339,7 +339,7 @@ export const BondForm = ({
alignItems: 'center',
justifyContent: 'flex-end',
borderTop: (theme) => `1px solid ${theme.palette.grey[200]}`,
bgcolor: (theme) => theme.palette.grey[50],
bgcolor: 'grey.100',
padding: 2,
}}
>
+1 -1
View File
@@ -100,7 +100,7 @@ export const Bond = () => {
alignItems: 'center',
justifyContent: 'flex-end',
borderTop: (theme) => `1px solid ${theme.palette.grey[200]}`,
bgcolor: (theme) => theme.palette.grey[50],
bgcolor: 'grey.100',
padding: 2,
}}
>
@@ -114,7 +114,7 @@ export const DelegateForm = ({
alignItems: 'center',
justifyContent: 'flex-end',
borderTop: (theme) => `1px solid ${theme.palette.grey[200]}`,
background: (theme) => theme.palette.grey[50],
bgcolor: 'grey.100',
padding: 2,
}}
>
+1 -1
View File
@@ -73,7 +73,7 @@ export const Delegate = () => {
alignItems: 'center',
justifyContent: 'flex-end',
borderTop: (theme) => `1px solid ${theme.palette.grey[200]}`,
background: (theme) => theme.palette.grey[50],
bgcolor: 'grey.100',
p: 2,
}}
>
+1 -1
View File
@@ -136,7 +136,7 @@ export const SendWizard = () => {
alignItems: 'center',
justifyContent: 'flex-end',
borderTop: (theme) => `1px solid ${theme.palette.grey[200]}`,
background: (theme) => theme.palette.grey[50],
bgcolor: 'grey.50',
p: 2,
}}
>
+1 -1
View File
@@ -1,6 +1,6 @@
import React, { useContext, useState } from 'react'
import { Button, CircularProgress, Grid, Stack, Link, TextField, Typography, Alert, SvgIcon } from '@mui/material'
import { styled } from '@mui/styles'
import { styled } from '@mui/material/styles'
import Logo from '../../images/logo-background.svg'
import { signInWithMnemonic } from '../../requests'
import { ClientContext } from '../../context/main'
@@ -110,7 +110,7 @@ export const UndelegateForm = ({
alignItems: 'center',
justifyContent: 'flex-end',
borderTop: (theme) => `1px solid ${theme.palette.grey[200]}`,
background: (theme) => theme.palette.grey[50],
bgcolor: 'grey.100',
p: 2,
}}
>
+3 -1
View File
@@ -98,12 +98,14 @@ export const Undelegate = () => {
alignItems: 'center',
justifyContent: 'flex-end',
borderTop: '1px solid grey[200]',
bgcolor: 'grey[50]',
bgcolor: 'grey.100',
p: 2,
}}
>
<Button
data-testid="finish-button"
variant="contained"
disableElevation
onClick={() => {
setStatus(EnumRequestStatus.initial)
initialize()