mirror of
https://github.com/yude-jp/yude.jp
synced 2025-01-03 10:00:11 +09:00
Fix close button on WakaTime.js
This commit is contained in:
parent
02b1adcf55
commit
ba0e41579a
@ -1,12 +1,16 @@
|
|||||||
// React
|
// React
|
||||||
import React, { useState, useEffect } from 'react';
|
import React from 'react';
|
||||||
|
|
||||||
// Font Awesome
|
// Font Awesome
|
||||||
import { faUserClock } from '@fortawesome/free-solid-svg-icons'
|
import { faUserClock } from '@fortawesome/free-solid-svg-icons'
|
||||||
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
|
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
|
||||||
|
|
||||||
|
// i18n
|
||||||
|
import { useTranslation } from 'next-export-i18n';
|
||||||
|
|
||||||
export default function Modal() {
|
export default function Modal() {
|
||||||
const [showModal, setShowModal] = React.useState(false);
|
const [showModal, setShowModal] = React.useState(false);
|
||||||
|
const { t } = useTranslation();
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
@ -36,7 +40,7 @@ export default function Modal() {
|
|||||||
type="button"
|
type="button"
|
||||||
onClick={() => setShowModal(false)}
|
onClick={() => setShowModal(false)}
|
||||||
>
|
>
|
||||||
{close}
|
{t('close')}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user