From e6037b430935720ce60245ae36ecd3622e8a22bf Mon Sep 17 00:00:00 2001
From: Max Nanis
Date: Mon, 2 Jun 2025 16:45:21 +0700
Subject: Updated openapi generator to use the latest version (camelCase to
 underscore - which respects API models). Updating views to use the new
 swagger definitions. AnswerSlice as a datastore alongside Questions TS
 interface

---
 src/pages/CashoutMethods.tsx | 11 ++++-------
 1 file changed, 4 insertions(+), 7 deletions(-)

(limited to 'src/pages/CashoutMethods.tsx')

diff --git a/src/pages/CashoutMethods.tsx b/src/pages/CashoutMethods.tsx
index 86727ee..9656087 100644
--- a/src/pages/CashoutMethods.tsx
+++ b/src/pages/CashoutMethods.tsx
@@ -1,11 +1,9 @@
 import React, {useEffect, useState} from 'react'
 
-import {Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle} from "@/components/ui/card.tsx";
-import {GRLWidgetSettings} from "@/Widget.tsx"
-import {CashoutMethodsResponse, WalletApi} from "@/api"
-import {CashoutMethod} from "@/models/CashoutMethod.ts";
+import {Card, CardContent, CardHeader} from "@/components/ui/card.tsx";
+import {CashoutMethodOut, CashoutMethodsResponse, WalletApi} from "@/api"
 
-const CashoutMethodPreview: React.FC<{ cashout_method: CashoutMethod }> = ({cashout_method}) => {
+const CashoutMethodPreview: React.FC<{ cashout_method: CashoutMethodOut }> = ({cashout_method}) => {
 
     return (
         <Card key={cashout_method.id}>
@@ -37,8 +35,7 @@ const CashoutMethodsPage: React.FC<GRLWidgetSettings> = ({settings}) => {
         <div className="grid grid-cols-3 gap-1 p-1">
             {
                 cashoutMethods.map((m, index) => {
-                    const cm = new CashoutMethod(m);
-                    return <CashoutMethodPreview key={index} cashout_method={cm} />;
+                    return <CashoutMethodPreview key={index} cashout_method={m}/>;
                 })
             }
         </div>
-- 
cgit v1.2.3

