Fix close button on `WakaTime.js`

This commit is contained in:
yude 2022-01-06 07:49:45 +09:00
parent 02b1adcf55
commit ba0e41579a
Signed by: yude
GPG Key ID: EB0FE5D925C4A968
1 changed files with 6 additions and 2 deletions

View File

@ -1,12 +1,16 @@
// React
import React, { useState, useEffect } from 'react';
import React from 'react';
// Font Awesome
import { faUserClock } from '@fortawesome/free-solid-svg-icons'
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
// i18n
import { useTranslation } from 'next-export-i18n';
export default function Modal() {
const [showModal, setShowModal] = React.useState(false);
const { t } = useTranslation();
return (
<>
@ -36,7 +40,7 @@ export default function Modal() {
type="button"
onClick={() => setShowModal(false)}
>
{close}
{t('close')}
</button>
</div>
</div>