|
3 | 3 | import { ConnectButton } from "@/components/global/connect-button";
|
4 | 4 | import { Button } from "@/components/ui/button";
|
5 | 5 | import { Card } from "@/components/ui/card";
|
6 |
| -import { |
7 |
| - Dialog, |
8 |
| - DialogContent, |
9 |
| - DialogHeader, |
10 |
| - DialogTrigger, |
11 |
| -} from "@/components/ui/dialog"; |
12 |
| -import { Drawer, DrawerContent, DrawerHeader } from "@/components/ui/drawer"; |
| 6 | +import { DialogTrigger } from "@/components/ui/dialog"; |
13 | 7 | import { Separator } from "@/components/ui/separator";
|
| 8 | +import { |
| 9 | + ALLO_POOLID, |
| 10 | + DONATION_RECEIVER, |
| 11 | + DOOGLY_CONTRACT, |
| 12 | + RECEIVING_TOKEN, |
| 13 | +} from "@/config/constants"; |
14 | 14 | import { useMediaQuery } from "@/hooks/use-media-query";
|
15 | 15 | import type { SupportReportInfo } from "@/types";
|
16 | 16 | import { DooglyDonateButton } from "@doogly/doogly-donate-component";
|
@@ -143,37 +143,17 @@ const SupportReport = ({
|
143 | 143 | setOpen,
|
144 | 144 | };
|
145 | 145 |
|
146 |
| - // if (isDesktop) { |
147 |
| - // return ( |
148 |
| - // <ReportSupportUI |
149 |
| - // {...props} |
150 |
| - // UIComponent={Dialog} |
151 |
| - // ContentComponent={DialogContent} |
152 |
| - // HeaderComponent={DialogHeader} |
153 |
| - // /> |
154 |
| - // ); |
155 |
| - // } |
156 |
| - |
157 |
| - // return ( |
158 |
| - // <ReportSupportUI |
159 |
| - // {...props} |
160 |
| - // UIComponent={Drawer} |
161 |
| - // ContentComponent={(props) => ( |
162 |
| - // <DrawerContent {...props} className="bg-vd-beige-100 p-3" /> |
163 |
| - // )} |
164 |
| - // HeaderComponent={DrawerHeader} |
165 |
| - // /> |
166 |
| - // ); |
167 | 146 | return (
|
168 | 147 | <DooglyDonateButton
|
169 | 148 | buttonText="Support this report"
|
170 | 149 | modalTitle="Support this report"
|
171 | 150 | config={{
|
172 | 151 | destinationChain: "optimism",
|
173 |
| - destinationAddress: "0x8a4c14d50c43363a28647188534db7004112091c", |
174 |
| - splitsAddress: "0xD8813c65a4A21772C360f32B2C7960040fa84a8B", |
| 152 | + destinationAddress: DOOGLY_CONTRACT, |
| 153 | + splitsAddress: DONATION_RECEIVER, |
175 | 154 | hypercertFractionId: hypercertId?.split("-")[2],
|
176 |
| - poolId: 0, |
| 155 | + poolId: ALLO_POOLID as number, |
| 156 | + destinationOutputTokenAddress: RECEIVING_TOKEN, |
177 | 157 | }}
|
178 | 158 | buttonClassName="rounded-3xl bg-vd-blue-900 text-vd-beige-100 hover:bg-vd-blue-700 dark:bg-vd-beige-100 dark:text-vd-blue-900 dark:hover:bg-vd-beige-100/90 active:outline-none active:scale-95 active:ring-2 active:ring-vd-blue-400 active:ring-offset-2"
|
179 | 159 | modalStyles={{
|
|
0 commit comments