mirror of
https://github.com/oceanprotocol/market.git
synced 2024-12-02 05:57:29 +01:00
Fix lint
This commit is contained in:
parent
5060f612b5
commit
0c1dea91b6
@ -50,10 +50,8 @@ export default function AssetContent(props: AssetContentProps): ReactElement {
|
|||||||
const [showPricing, setShowPricing] = useState(false)
|
const [showPricing, setShowPricing] = useState(false)
|
||||||
const [showEdit, setShowEdit] = useState<boolean>()
|
const [showEdit, setShowEdit] = useState<boolean>()
|
||||||
const [showEditCompute, setShowEditCompute] = useState<boolean>()
|
const [showEditCompute, setShowEditCompute] = useState<boolean>()
|
||||||
const [
|
const [showEditAdvanceSettings, setShowEditAdvanceSettings] =
|
||||||
showEditAdvanceSettings,
|
useState<boolean>()
|
||||||
setShowEditAdvanceSettings
|
|
||||||
] = useState<boolean>()
|
|
||||||
const [isOwner, setIsOwner] = useState(false)
|
const [isOwner, setIsOwner] = useState(false)
|
||||||
const { ddo, price, metadata, type } = useAsset()
|
const { ddo, price, metadata, type } = useAsset()
|
||||||
const { appConfig } = useSiteMetadata()
|
const { appConfig } = useSiteMetadata()
|
||||||
|
@ -12,13 +12,12 @@ export interface AdvanceSettingsForm {
|
|||||||
isOrderDisabled: boolean
|
isOrderDisabled: boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
export const validationSchema: Yup.SchemaOf<AdvanceSettingsForm> = Yup.object().shape(
|
export const validationSchema: Yup.SchemaOf<AdvanceSettingsForm> =
|
||||||
{
|
Yup.object().shape({
|
||||||
allow: Yup.array().nullable(),
|
allow: Yup.array().nullable(),
|
||||||
deny: Yup.array().nullable(),
|
deny: Yup.array().nullable(),
|
||||||
isOrderDisabled: Yup.boolean().nullable()
|
isOrderDisabled: Yup.boolean().nullable()
|
||||||
}
|
})
|
||||||
)
|
|
||||||
|
|
||||||
function getAssetCredentials(
|
function getAssetCredentials(
|
||||||
credentials: Credentials,
|
credentials: Credentials,
|
||||||
|
Loading…
Reference in New Issue
Block a user