Remove update dialog and translations
This commit is contained in:
parent
83a571c2ef
commit
ce1fbcfde8
15 changed files with 0 additions and 155 deletions
|
|
@ -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 Recents } from './Recents/Recents'
|
||||
export { default as Logo } from './Logo/Logo'
|
||||
export { default as UpdateDialog } from './UpdateDialog/UpdateDialog'
|
||||
export { default as TranslateDialog } from './TranslateDialog/TranslateDialog'
|
||||
|
||||
export const _GoogleCalendar = () => import('./GoogleCalendar/GoogleCalendar')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue