From 0c1dea91b68747d3040d54d5bb15bdbdcb8fd619 Mon Sep 17 00:00:00 2001 From: KY Lau Date: Wed, 9 Jun 2021 17:46:03 +0800 Subject: [PATCH] Fix lint --- src/components/organisms/AssetContent/index.tsx | 6 ++---- src/models/FormEditCredential.ts | 7 +++---- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/src/components/organisms/AssetContent/index.tsx b/src/components/organisms/AssetContent/index.tsx index 4f96f5c62..4d71f7232 100644 --- a/src/components/organisms/AssetContent/index.tsx +++ b/src/components/organisms/AssetContent/index.tsx @@ -50,10 +50,8 @@ export default function AssetContent(props: AssetContentProps): ReactElement { const [showPricing, setShowPricing] = useState(false) const [showEdit, setShowEdit] = useState() const [showEditCompute, setShowEditCompute] = useState() - const [ - showEditAdvanceSettings, - setShowEditAdvanceSettings - ] = useState() + const [showEditAdvanceSettings, setShowEditAdvanceSettings] = + useState() const [isOwner, setIsOwner] = useState(false) const { ddo, price, metadata, type } = useAsset() const { appConfig } = useSiteMetadata() diff --git a/src/models/FormEditCredential.ts b/src/models/FormEditCredential.ts index f6ce7d4ac..f604efeed 100644 --- a/src/models/FormEditCredential.ts +++ b/src/models/FormEditCredential.ts @@ -12,13 +12,12 @@ export interface AdvanceSettingsForm { isOrderDisabled: boolean } -export const validationSchema: Yup.SchemaOf = Yup.object().shape( - { +export const validationSchema: Yup.SchemaOf = + Yup.object().shape({ allow: Yup.array().nullable(), deny: Yup.array().nullable(), isOrderDisabled: Yup.boolean().nullable() - } -) + }) function getAssetCredentials( credentials: Credentials,