Skip to content

Commit

Permalink
Add wallet and transfer
Browse files Browse the repository at this point in the history
  • Loading branch information
Mạnh Tùng Nguyễn authored and Mạnh Tùng Nguyễn committed Jul 4, 2024
1 parent 908d320 commit 2375d25
Show file tree
Hide file tree
Showing 10 changed files with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions src/components/customInput/InputSelectWallet.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
import {useEffect, useState} from "react";
import callApi from "../../apis/GatewayApi.js";
import InputAutocomplete from "./core/InputAutocomplete.jsx";
import PropTypes from "prop-types";

const InputSelectHolder = (props) => {
const [holders, setHolders] = useState([])
const [isLoading, setIsLoading] = useState(true)

useEffect(() => {
getHolders()
}, []);

const getHolders = () => {
setHolders([])

callApi('pkg_bud_holder.get_all', {}, (data) => {
setHolders(data.map((e) => {
return {
value: e.PK_BUD_HOLDER,
label: e.C_HOLDER_NAME
}
}))

setIsLoading(false)
})
}

return <InputAutocomplete
data={holders}
isLoading={isLoading}
{...props}
/>
}

export default InputSelectHolder;
Empty file.
Empty file.
Empty file added src/pages/DashboardPage.jsx
Empty file.
Empty file added src/pages/TransferPage.jsx
Empty file.
Empty file added src/pages/WalletPage.jsx
Empty file.
Empty file.
Empty file.
Empty file.
Empty file added src/pages/walletPage/Wallet.jsx
Empty file.

0 comments on commit 2375d25

Please sign in to comment.