feat: sync and update with all changes from fork (#720)
* feat: sync and update with all changes from fork * refactor: extract clipboard copy logic into custom hook * fix: correct spelling of DEFAULT_REFRESH_FREQUENCY_MS in Stamps and WalletBalance providers * refactor(ui-tests): replace fixed sleeps with condition-based waits * fix: handle null values for size and granteeCount in infoGroups * fix(lint): add newline at end of file in useClipboardCopy hook * fix(ui-tests): page.goto URL * refactor: update import paths for useClipboardCopy --------- Co-authored-by: Ferenc Sárai <sarai.ferenc@gmail.com>
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
import { createStyles, makeStyles, TextField as SimpleTextField, Theme } from '@material-ui/core'
|
||||
import { TextField as SimpleTextField } from '@mui/material'
|
||||
import { Field } from 'formik'
|
||||
import { TextField } from 'formik-material-ui'
|
||||
import { TextField } from 'formik-mui'
|
||||
import { ChangeEvent, ReactElement } from 'react'
|
||||
import { makeStyles } from 'tss-react/mui'
|
||||
|
||||
interface Props {
|
||||
name: string
|
||||
@@ -14,25 +15,23 @@ interface Props {
|
||||
onChange?: (event: ChangeEvent<HTMLTextAreaElement>) => void
|
||||
}
|
||||
|
||||
const useStyles = makeStyles((theme: Theme) =>
|
||||
createStyles({
|
||||
field: {
|
||||
background: theme.palette.background.paper,
|
||||
'& fieldset': {
|
||||
border: 0,
|
||||
},
|
||||
'& .Mui-focused': {
|
||||
background: theme.palette.background.paper,
|
||||
},
|
||||
'& .MuiInputBase-root': {
|
||||
background: theme.palette.background.paper,
|
||||
},
|
||||
'& .MuiFilledInput-root': {
|
||||
borderRadius: 0,
|
||||
},
|
||||
const useStyles = makeStyles()(theme => ({
|
||||
field: {
|
||||
background: theme.palette.background.paper,
|
||||
'& fieldset': {
|
||||
border: 0,
|
||||
},
|
||||
}),
|
||||
)
|
||||
'& .Mui-focused': {
|
||||
background: theme.palette.background.paper,
|
||||
},
|
||||
'& .MuiInputBase-root': {
|
||||
background: theme.palette.background.paper,
|
||||
},
|
||||
'& .MuiFilledInput-root': {
|
||||
borderRadius: 0,
|
||||
},
|
||||
},
|
||||
}))
|
||||
|
||||
export function SwarmTextInput({
|
||||
name,
|
||||
@@ -44,7 +43,7 @@ export function SwarmTextInput({
|
||||
defaultValue,
|
||||
placeholder,
|
||||
}: Props): ReactElement {
|
||||
const classes = useStyles()
|
||||
const { classes } = useStyles()
|
||||
|
||||
if (formik) {
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user