mirror of
https://github.com/Unkn0wnCat/KevinK.dev.js.git
synced 2025-06-07 21:22:06 +02:00
Cleanup code
This commit is contained in:
parent
4d70d5b6f7
commit
b16262025a
9 changed files with 31 additions and 33 deletions
|
@ -1,16 +1,14 @@
|
|||
import React, {useState} from "react"
|
||||
import Layout from "../layouts/default";
|
||||
import {useStaticQuery, graphql} from "gatsby";
|
||||
import { Trans, Link, useI18next, I18nextContext } from "gatsby-plugin-react-i18next"
|
||||
import { Trans, useI18next, I18nextContext } from "gatsby-plugin-react-i18next"
|
||||
|
||||
import styles from "./donate.module.scss";
|
||||
|
||||
import logo from "../images/roundedbglogo@10x.png";
|
||||
|
||||
export default function DonatePage() {
|
||||
const [amount, setAmount] = useState(5);
|
||||
const {t} = useI18next();
|
||||
const {language, path} = React.useContext(I18nextContext);
|
||||
const {path} = React.useContext(I18nextContext);
|
||||
|
||||
const { site, file } = useStaticQuery(
|
||||
graphql`
|
||||
|
@ -43,7 +41,7 @@ export default function DonatePage() {
|
|||
|
||||
<div className={styles.priceAmount}>
|
||||
<label for="priceInput" className={styles.sronly}>Amount</label>
|
||||
<input type="number" min="1" placeholder="10.00" step="1" value={amount} onChange={(ev) => {setAmount(ev.target.value)}} id="priceInput" />
|
||||
<input type="number" min="1" placeholder="10.00" step="1" value={amount} onChange={(ev) => {setAmount(ev.target.value)}} name="priceInput" id="priceInput" />
|
||||
<div>€</div>
|
||||
</div>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue