Skip to content

Commit

Permalink
fix: error ts 7006
Browse files Browse the repository at this point in the history
  • Loading branch information
dsrkafuu committed Apr 8, 2022
1 parent 83cd336 commit 14bbede
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/views/SettingsAbout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,7 @@ import themes from '../themes';
function SettingsAbout() {
const t = useTranslation();

/**
* @param {Date} date
* @param {string} lang
*/
const toDate = useCallback((date, lang) => {
const toDate = useCallback((date: Date, lang: string) => {
try {
return date.toLocaleString(lang);
} catch {
Expand Down

0 comments on commit 14bbede

Please sign in to comment.