diff --git a/apps/renderer/src/modules/boost/modal.tsx b/apps/renderer/src/modules/boost/modal.tsx index 1f29574ca..9aef35e33 100644 --- a/apps/renderer/src/modules/boost/modal.tsx +++ b/apps/renderer/src/modules/boost/modal.tsx @@ -1,14 +1,15 @@ import { from } from "dnum" +import { AnimatePresence, m } from "framer-motion" import { useCallback, useState } from "react" import { Button } from "~/components/ui/button" +import { softSpringPreset } from "~/components/ui/constants/spring" import { LoadingWithIcon } from "~/components/ui/loading" import { useCurrentModal } from "~/components/ui/modal" import { useAuthQuery, useI18n } from "~/hooks/common" import { boosts, useBoostFeedMutation } from "~/queries/boosts" import { useWallet } from "~/queries/wallet" -import { Balance } from "../wallet/balance" import { BoostProgress } from "./boost-progress" import { LevelBenefits } from "./level-benefits" import { RadioCards } from "./radio-cards" @@ -42,27 +43,6 @@ export const BoostModalContent = ({ feedId }: { feedId: string }) => { ) } - if (boostFeedMutation.isSuccess) { - return ( -
-

{t("tip_modal.tip_sent")}

- -

- - {amountBigInt} - {" "} - {t("tip_modal.tip_amount_sent")} -

- -
- -
-
- ) - } - return (
@@ -74,22 +54,38 @@ export const BoostModalContent = ({ feedId }: { feedId: string }) => { - + + + {!boostFeedMutation.isSuccess && ( + + )} +
- + {boostFeedMutation.isSuccess ? ( + <> + + Thank you for your support! + + + + ) : ( + + )}
diff --git a/apps/renderer/src/modules/boost/radio-cards.tsx b/apps/renderer/src/modules/boost/radio-cards.tsx index e7b2d4971..4fd6aa19a 100644 --- a/apps/renderer/src/modules/boost/radio-cards.tsx +++ b/apps/renderer/src/modules/boost/radio-cards.tsx @@ -1,3 +1,6 @@ +import { m } from "framer-motion" + +import { softSpringPreset } from "~/components/ui/constants/spring" import { RadioGroup } from "~/components/ui/radio-group" import { RadioCard } from "~/components/ui/radio-group/RadioCard" @@ -31,7 +34,13 @@ export const RadioCards = ({ }) => { return ( onValueChange(+value)}> -
+ {radios.map((item) => ( ))} -
+
) }