= ({settings}) => {
+ const [cashoutMethods, setCashoutMethods] = useState([]);
+
+ useEffect(() => {
+ const x = new WalletApi();
+ x.getCashoutMethodsProductIdCashoutMethodsGet(settings.bpid, settings.bpuid)
+ .then(res => {
+ const data: CashoutMethodsResponse = res.data;
+ setCashoutMethods(data.cashout_methods);
+ })
+ .catch(err => console.log(err));
+ }, []); // ← empty array means "run once"
+
+ return (
+
+ {
+ cashoutMethods.map((m, index) => {
+ const cm = new CashoutMethod(m);
+ return ;
+ })
+ }
+
+ );
+}
+
+export {CommunityPage}
\ No newline at end of file
--
cgit v1.2.3