Skip to content

Commit

Permalink
USDC token transfer
Browse files Browse the repository at this point in the history
  • Loading branch information
IAmKio committed Mar 17, 2024
1 parent daac1bd commit 57f7126
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 3 deletions.
4 changes: 2 additions & 2 deletions frontend/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<meta name="theme-color" content="#000000" />
<meta
name="description"
content="Web site created using create-react-app"
content="A crypto-first tipping platform for creators."
/>
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
<!--
Expand All @@ -24,7 +24,7 @@
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->
<title>React App</title>
<title>TokenTip</title>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/Intro/Intro.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default function Intro() {
<br />
🇬🇧 ETH Global London Hackathon 2024. <br />
<br />
You cah sign in with{" "}
You can sign in with{" "}
<LinearGradient gradient={["to left", "#b92b27 ,#1565C0"]}>
<Typography fontSize={18}>World ID</Typography>{" "}
</LinearGradient>
Expand Down
29 changes: 29 additions & 0 deletions frontend/src/components/Tip/Tip.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ export default function Tip() {
const etherspotUtils = useEtherspotUtils();
const [fetchedBalances, setFetchedBalances] = useState(null);
const [sendValue, setSendValue] = useState(0);
const [sendUsdcValue, setSendUsdcValue] = useState("0");
const [modalOpen, setModalOpen] = useState(false);
const [sending, setSending] = useState(false);
const [assetPrice, setAssetPrice] = useState(0);
Expand Down Expand Up @@ -199,6 +200,34 @@ export default function Tip() {
))}
</Box>
</EtherspotTransaction>
{/* <EtherspotTokenTransferTransaction
receiverAddress={jarsData.etherspotAddress}
tokenAddress="0x036CbD53842c5426634e7929541eC2318f3dCF7e"
value={sendUsdcValue === "" ? "0" : sendUsdcValue}
tokenDecimals={6}
>
<Input
startDecorator={<Typography>USDC</Typography>}
autoComplete="off"
placeholder="1"
size="lg"
fullWidth
onChange={(e) => setSendUsdcValue(e.target.value)}
value={sendUsdcValue ?? "0"}
endDecorator={
<IconButton
onClick={() => {
setSending(true);
send();
}}
variant="soft"
color="success"
>
{sending ? <CircularProgress /> : <SendIcon />}
</IconButton>
}
/>
</EtherspotTokenTransferTransaction> */}
</EtherspotBatch>
</EtherspotBatches>
<Typography level="body-sm">
Expand Down

0 comments on commit 57f7126

Please sign in to comment.