Commit 9e0d2a7b authored by tom goriunov's avatar tom goriunov Committed by GitHub

UX: Move "Submit audit" button (#2889)

Fixes #2834
parent 4e124714
......@@ -37,7 +37,6 @@ const ContractSecurityAudits = ({ addressHash }: Props) => {
return (
<>
<Button variant="outline" size="sm" onClick={ modalProps.onOpen }>Submit audit</Button>
{ data?.items && data.items.length > 0 && (
<Box position="relative">
<ContainerWithScrollY
......@@ -45,7 +44,7 @@ const ContractSecurityAudits = ({ addressHash }: Props) => {
rowGap={ 1 }
w="100%"
maxH="80px"
mt={ 2 }
mb={ 2 }
>
{ data.items.map(item => (
<Link external href={ item.audit_report_url } key={ item.audit_company_name + item.audit_publish_date } loading={ isPlaceholderData }>
......@@ -55,6 +54,7 @@ const ContractSecurityAudits = ({ addressHash }: Props) => {
</ContainerWithScrollY>
</Box>
) }
<Button variant="outline" size="sm" onClick={ modalProps.onOpen }>Submit audit</Button>
<FormModal<SmartContractSecurityAuditSubmission>
open={ modalProps.open }
onOpenChange={ modalProps.onOpenChange }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment