mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
35 lines
862 B
TypeScript
35 lines
862 B
TypeScript
import React from 'react';
|
|
|
|
import { ContentLoader } from 'toolkit/components/loaders/ContentLoader';
|
|
import ContractVerificationForm from 'ui/contractVerification/ContractVerificationForm';
|
|
import useFormConfigQuery from 'ui/contractVerification/useFormConfigQuery';
|
|
import DataFetchAlert from 'ui/shared/DataFetchAlert';
|
|
import PageTitle from 'ui/shared/Page/PageTitle';
|
|
|
|
const ContractVerification = () => {
|
|
const configQuery = useFormConfigQuery(true);
|
|
|
|
const content = (() => {
|
|
if (configQuery.isError) {
|
|
return <DataFetchAlert/>;
|
|
}
|
|
|
|
if (configQuery.isPending) {
|
|
return <ContentLoader/>;
|
|
}
|
|
|
|
return (
|
|
<ContractVerificationForm config={ configQuery.data }/>
|
|
);
|
|
})();
|
|
|
|
return (
|
|
<>
|
|
<PageTitle title="Verify & publish contract"/>
|
|
{ content }
|
|
</>
|
|
);
|
|
};
|
|
|
|
export default ContractVerification;
|