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) => { ...@@ -37,7 +37,6 @@ const ContractSecurityAudits = ({ addressHash }: Props) => {
return ( return (
<> <>
<Button variant="outline" size="sm" onClick={ modalProps.onOpen }>Submit audit</Button>
{ data?.items && data.items.length > 0 && ( { data?.items && data.items.length > 0 && (
<Box position="relative"> <Box position="relative">
<ContainerWithScrollY <ContainerWithScrollY
...@@ -45,7 +44,7 @@ const ContractSecurityAudits = ({ addressHash }: Props) => { ...@@ -45,7 +44,7 @@ const ContractSecurityAudits = ({ addressHash }: Props) => {
rowGap={ 1 } rowGap={ 1 }
w="100%" w="100%"
maxH="80px" maxH="80px"
mt={ 2 } mb={ 2 }
> >
{ data.items.map(item => ( { data.items.map(item => (
<Link external href={ item.audit_report_url } key={ item.audit_company_name + item.audit_publish_date } loading={ isPlaceholderData }> <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) => { ...@@ -55,6 +54,7 @@ const ContractSecurityAudits = ({ addressHash }: Props) => {
</ContainerWithScrollY> </ContainerWithScrollY>
</Box> </Box>
) } ) }
<Button variant="outline" size="sm" onClick={ modalProps.onOpen }>Submit audit</Button>
<FormModal<SmartContractSecurityAuditSubmission> <FormModal<SmartContractSecurityAuditSubmission>
open={ modalProps.open } open={ modalProps.open }
onOpenChange={ modalProps.onOpenChange } 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