Remove update dialog and translations
This commit is contained in:
parent
83a571c2ef
commit
ce1fbcfde8
|
|
@ -55,14 +55,6 @@
|
||||||
"label": "Sprache"
|
"label": "Sprache"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"update": {
|
|
||||||
"heading": "Crab Fit wurde aktualisiert",
|
|
||||||
"body": "Eine neue Version von Crab Fit ist verfügbar, die Updates, Fixes und neue Funktionen enthält.",
|
|
||||||
"buttons": {
|
|
||||||
"close": "Entlassen",
|
|
||||||
"reload": "Neu laden"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"video": {
|
"video": {
|
||||||
"title": "Crab Fit Promo Video",
|
"title": "Crab Fit Promo Video",
|
||||||
"button": "Unser Video"
|
"button": "Unser Video"
|
||||||
|
|
|
||||||
|
|
@ -54,13 +54,5 @@
|
||||||
"language": {
|
"language": {
|
||||||
"label": "Language"
|
"label": "Language"
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"update": {
|
|
||||||
"heading": "Crab Fit has been updated",
|
|
||||||
"body": "A new version of Crab Fit is available, which includes updates, fixes, and new features.",
|
|
||||||
"buttons": {
|
|
||||||
"close": "Close",
|
|
||||||
"reload": "Reload"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -55,14 +55,6 @@
|
||||||
"label": "Language"
|
"label": "Language"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"update": {
|
|
||||||
"heading": "Crab Fit has been updated",
|
|
||||||
"body": "A new version of Crab Fit is available, which includes updates, fixes, and new features.",
|
|
||||||
"buttons": {
|
|
||||||
"close": "Close",
|
|
||||||
"reload": "Reload"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"video": {
|
"video": {
|
||||||
"title": "Crab Fit Promotional Video",
|
"title": "Crab Fit Promotional Video",
|
||||||
"button": "Watch the video"
|
"button": "Watch the video"
|
||||||
|
|
|
||||||
|
|
@ -54,13 +54,5 @@
|
||||||
"language": {
|
"language": {
|
||||||
"label": "Idioma"
|
"label": "Idioma"
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"update": {
|
|
||||||
"heading": "Se ha actualizado Crab Fit",
|
|
||||||
"body": "Está disponible una nueva versión de Crab Fit, que incluye actualizaciones, correcciones y nuevas funciones.",
|
|
||||||
"buttons": {
|
|
||||||
"close": "Cerca",
|
|
||||||
"reload": "Recargar"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -55,14 +55,6 @@
|
||||||
"label": "Langue"
|
"label": "Langue"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"update": {
|
|
||||||
"heading": "Crab Fit a été mis à jour",
|
|
||||||
"body": "Une nouvelle version de Crab Fit est disponible, qui comprend des mises à jour, des correctifs et de nouvelles fonctionnalités.",
|
|
||||||
"buttons": {
|
|
||||||
"close": "Fermer",
|
|
||||||
"reload": "Recharger"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"video": {
|
"video": {
|
||||||
"title": "Vidéo promotionnelle de Crab Fit",
|
"title": "Vidéo promotionnelle de Crab Fit",
|
||||||
"button": "Regarder la vidéo"
|
"button": "Regarder la vidéo"
|
||||||
|
|
|
||||||
|
|
@ -54,13 +54,5 @@
|
||||||
"language": {
|
"language": {
|
||||||
"label": "भाषा"
|
"label": "भाषा"
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"update": {
|
|
||||||
"heading": "एक अपडेट है",
|
|
||||||
"body": "एक नया संस्करण उपलब्ध है, जिसमें अपडेट, सुधार और नई सुविधाएं शामिल हैं।",
|
|
||||||
"buttons": {
|
|
||||||
"close": "खारिज",
|
|
||||||
"reload": "पुनः लोड करें"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -54,13 +54,5 @@
|
||||||
"language": {
|
"language": {
|
||||||
"label": "Bahasa"
|
"label": "Bahasa"
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"update": {
|
|
||||||
"heading": "Crab Fit telah diperbarui",
|
|
||||||
"body": "Versi baru Crab Fit tersedia, yang mencakup pembaruan, perbaikan, dan fitur baru.",
|
|
||||||
"buttons": {
|
|
||||||
"close": "Menutup",
|
|
||||||
"reload": "Muat ulang"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -54,13 +54,5 @@
|
||||||
"language": {
|
"language": {
|
||||||
"label": "言語"
|
"label": "言語"
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"update": {
|
|
||||||
"heading": "Crab Fit が更新されました",
|
|
||||||
"body": "新しいバージョンの Crab Fit を利用できます。不具合の修正や新機能の追加などが行われています。",
|
|
||||||
"buttons": {
|
|
||||||
"close": "閉じる",
|
|
||||||
"reload": "再読込"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -54,13 +54,5 @@
|
||||||
"language": {
|
"language": {
|
||||||
"label": "언어"
|
"label": "언어"
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"update": {
|
|
||||||
"heading": "새 업데이트가 있습니다",
|
|
||||||
"body": "업데이트, 수정 및 새 기능이 포함된 새 버전을 사용할 수 있습니다.",
|
|
||||||
"buttons": {
|
|
||||||
"close": "닫다",
|
|
||||||
"reload": "다시 로드합니다"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -55,14 +55,6 @@
|
||||||
"label": "Język"
|
"label": "Język"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"update": {
|
|
||||||
"heading": "Crab Fit został zaktualizowany",
|
|
||||||
"body": "Nowa wersja Crab Fita jest dostępna, która zawiera aktualizacje, poprawki oraz nowe funkcje.",
|
|
||||||
"buttons": {
|
|
||||||
"close": "Zamknij",
|
|
||||||
"reload": "Przeładuj"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"video": {
|
"video": {
|
||||||
"title": "Promocyjne wideo Crab Fita",
|
"title": "Promocyjne wideo Crab Fita",
|
||||||
"button": "Obejrzyj wideo"
|
"button": "Obejrzyj wideo"
|
||||||
|
|
|
||||||
|
|
@ -55,14 +55,6 @@
|
||||||
"label": "idioma"
|
"label": "idioma"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"update": {
|
|
||||||
"heading": "Crab Fit foi atualizado",
|
|
||||||
"body": "Uma nova versão está disponível com atualizações, correções e funções novas.",
|
|
||||||
"buttons": {
|
|
||||||
"close": "Fechar",
|
|
||||||
"reload": "Recarregar"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"video": {
|
"video": {
|
||||||
"title": "Vídeo promocional Crab Fit",
|
"title": "Vídeo promocional Crab Fit",
|
||||||
"button": "veja o vídeo"
|
"button": "veja o vídeo"
|
||||||
|
|
|
||||||
|
|
@ -54,13 +54,5 @@
|
||||||
"language": {
|
"language": {
|
||||||
"label": "Язык"
|
"label": "Язык"
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"update": {
|
|
||||||
"heading": "Crab Fit обновлен",
|
|
||||||
"body": "Доступна новая версия Crab Fit, которая включает обновления, исправления и новые функции.",
|
|
||||||
"buttons": {
|
|
||||||
"close": "Закрыть",
|
|
||||||
"reload": "Перезагрузить"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,25 +0,0 @@
|
||||||
import { useTranslation } from 'react-i18next'
|
|
||||||
|
|
||||||
import { Button } from '/src/components'
|
|
||||||
|
|
||||||
import {
|
|
||||||
Wrapper,
|
|
||||||
ButtonWrapper,
|
|
||||||
} from './UpdateDialog.styles'
|
|
||||||
|
|
||||||
const UpdateDialog = ({ onClose }) => {
|
|
||||||
const { t } = useTranslation('common')
|
|
||||||
|
|
||||||
return (
|
|
||||||
<Wrapper>
|
|
||||||
<h2>{t('common:update.heading')}</h2>
|
|
||||||
<p>{t('common:update.body')}</p>
|
|
||||||
<ButtonWrapper>
|
|
||||||
<Button secondary onClick={onClose}>{t('common:update.buttons.close')}</Button>
|
|
||||||
<Button onClick={() => window.location.reload()}>{t('common:update.buttons.reload')}</Button>
|
|
||||||
</ButtonWrapper>
|
|
||||||
</Wrapper>
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
export default UpdateDialog
|
|
||||||
|
|
@ -1,33 +0,0 @@
|
||||||
import { styled } from 'goober'
|
|
||||||
|
|
||||||
export const Wrapper = styled('div')`
|
|
||||||
position: fixed;
|
|
||||||
bottom: 20px;
|
|
||||||
right: 20px;
|
|
||||||
background-color: var(--background);
|
|
||||||
border: 1px solid var(--surface);
|
|
||||||
z-index: 900;
|
|
||||||
padding: 20px 26px;
|
|
||||||
border-radius: 3px;
|
|
||||||
width: 400px;
|
|
||||||
box-sizing: border-box;
|
|
||||||
max-width: calc(100% - 40px);
|
|
||||||
box-shadow: 0 3px 6px 0 rgba(0,0,0,.3);
|
|
||||||
|
|
||||||
& h2 {
|
|
||||||
margin: 0;
|
|
||||||
font-size: 1.3rem;
|
|
||||||
}
|
|
||||||
& p {
|
|
||||||
margin: 16px 0 24px;
|
|
||||||
font-size: 1rem;
|
|
||||||
}
|
|
||||||
`
|
|
||||||
|
|
||||||
export const ButtonWrapper = styled('div')`
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: flex-end;
|
|
||||||
gap: 16px;
|
|
||||||
flex-wrap: wrap;
|
|
||||||
`
|
|
||||||
|
|
@ -18,7 +18,6 @@ export { default as Egg } from './Egg/Egg'
|
||||||
export { default as Footer } from './Footer/Footer'
|
export { default as Footer } from './Footer/Footer'
|
||||||
export { default as Recents } from './Recents/Recents'
|
export { default as Recents } from './Recents/Recents'
|
||||||
export { default as Logo } from './Logo/Logo'
|
export { default as Logo } from './Logo/Logo'
|
||||||
export { default as UpdateDialog } from './UpdateDialog/UpdateDialog'
|
|
||||||
export { default as TranslateDialog } from './TranslateDialog/TranslateDialog'
|
export { default as TranslateDialog } from './TranslateDialog/TranslateDialog'
|
||||||
|
|
||||||
export const _GoogleCalendar = () => import('./GoogleCalendar/GoogleCalendar')
|
export const _GoogleCalendar = () => import('./GoogleCalendar/GoogleCalendar')
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue