Skip to content

Commit

Permalink
Add spinner
Browse files Browse the repository at this point in the history
  • Loading branch information
IanPhilips committed Dec 6, 2024
1 parent afb95d4 commit 9705538
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion web/components/home/daily-loan.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import { GiOpenChest, GiTwoCoins } from 'react-icons/gi'
import { Col } from 'web/components/layout/col'
import { TRADE_TERM } from 'common/envs/constants'
import { useAPIGetter } from 'web/hooks/use-api-getter'
import { LoadingIndicator } from '../widgets/loading-indicator'
import { DAY_MS } from 'common/util/time'

dayjs.extend(utc)
Expand Down Expand Up @@ -106,7 +107,9 @@ export function DailyLoan(props: {
'items-center justify-center whitespace-nowrap px-1'
)}
>
{receivedLoanToday || notEligibleForLoan ? (
{loaning ? (
<LoadingIndicator size={'md'} />
) : receivedLoanToday || notEligibleForLoan ? (
<GiOpenChest className="h-6 w-6 text-yellow-900" />
) : (
<GiTwoCoins className="h-6 w-6 text-yellow-300" />
Expand Down

0 comments on commit 9705538

Please sign in to comment.