From f35d9954c3bd7bceac1b7fa10131bf04abe5550e Mon Sep 17 00:00:00 2001 From: Serkan Reis Date: Wed, 24 Jan 2024 12:14:50 +0300 Subject: [PATCH] Add loading spinner --- pages/snapshots/holders.tsx | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/pages/snapshots/holders.tsx b/pages/snapshots/holders.tsx index 4ed360f..5f928ec 100644 --- a/pages/snapshots/holders.tsx +++ b/pages/snapshots/holders.tsx @@ -3,8 +3,8 @@ /* eslint-disable @typescript-eslint/no-unsafe-member-access */ /* eslint-disable @typescript-eslint/restrict-template-expressions */ /* eslint-disable tailwindcss/classnames-order */ -/* eslint-disable react/button-has-type */ +import { Button } from 'components/Button' import { ContractPageHeader } from 'components/ContractPageHeader' import { AddressInput } from 'components/forms/FormInput' import { useInputState } from 'components/forms/FormInput.hooks' @@ -31,6 +31,7 @@ const Holders: NextPage = () => { const [includeStaked, setIncludeStaked] = useState(true) const [includeListed, setIncludeListed] = useState(true) const [exportIndividualTokens, setExportIndividualTokens] = useState(false) + const [isLoading, setIsLoading] = useState(false) const snapshotEndpoint = `https://metabase.constellations.zone/api/public/card/4cf9550e-5eb7-4fe7-bd3b-dc33229f53dc/query/json?parameters=%5B%7B%22type%22%3A%22category%22%2C%22value%22%3A%22${collectionAddressState.value}%22%2C%22id%22%3A%22cb34b7a8-70cf-ba86-8d9c-360b5b2fedd3%22%2C%22target%22%3A%5B%22variable%22%2C%5B%22template-tag%22%2C%22collection_addr%22%5D%5D%7D%5D` @@ -96,9 +97,11 @@ const Holders: NextPage = () => { - + ) }