1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-12-02 05:57:29 +01:00
This commit is contained in:
KY Lau 2021-06-09 17:46:03 +08:00
parent 5060f612b5
commit 0c1dea91b6
2 changed files with 5 additions and 8 deletions

View File

@ -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()

View File

@ -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,