Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | 46x 3x 3x 1x | import { Stack } from "@mui/material";
import { TicketIcon } from "@phosphor-icons/react";
import { usePayBuilderForm } from "@sections/PayBuilder/provider/PayBuilderFormProvider";
import HFGiveCustomAmount from "@shared/HFInputs/HFGiveCustomAmount/HFGiveCustomAmount";
import GiveText from "@shared/Text/GiveText";
export const SweepstakeAmountsSection = () => {
const {
methods: { setValue },
} = usePayBuilderForm();
return (
<Stack gap="12px">
<Stack direction="row" spacing={2}>
<TicketIcon size="24px" />
<GiveText variant="bodyL">Amounts</GiveText>
</Stack>
<Stack paddingLeft="32px" gap="12px">
<HFGiveCustomAmount
label="Single Entry Price"
name="Entries.singleEntryPrice"
currency="usd"
onChange={(value) => {
setValue("Entries.singleEntryPrice", value, {
shouldValidate: true,
});
}}
/>
</Stack>
</Stack>
);
};
|