WIP: Toast for updates
This commit is contained in:
parent
271ec17202
commit
f6d0cd7089
2 changed files with 41 additions and 0 deletions
11
components/UpdateToast/index.scss
Normal file
11
components/UpdateToast/index.scss
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
.Notice {
|
||||||
|
align-items: center;
|
||||||
|
border-radius: $card-corner;
|
||||||
|
background: blue;
|
||||||
|
display: flex;
|
||||||
|
padding: $unit;
|
||||||
|
|
||||||
|
p {
|
||||||
|
font-size: $font-small;
|
||||||
|
}
|
||||||
|
}
|
||||||
30
components/UpdateToast/index.tsx
Normal file
30
components/UpdateToast/index.tsx
Normal file
|
|
@ -0,0 +1,30 @@
|
||||||
|
import React from 'react'
|
||||||
|
import classNames from 'classnames'
|
||||||
|
|
||||||
|
import Button from '~components/Button'
|
||||||
|
import Toast from '~components/Toast'
|
||||||
|
|
||||||
|
import './index.scss'
|
||||||
|
import { useTranslation } from 'next-i18next'
|
||||||
|
|
||||||
|
interface Props {}
|
||||||
|
|
||||||
|
const UpdateToast = (props: Props) => {
|
||||||
|
const { t } = useTranslation('updates')
|
||||||
|
|
||||||
|
const classes = classNames({
|
||||||
|
Update: true,
|
||||||
|
})
|
||||||
|
|
||||||
|
return (
|
||||||
|
<Toast
|
||||||
|
className={classes}
|
||||||
|
title={t('updates.latest.title')}
|
||||||
|
content={t('updates.latest.content')}
|
||||||
|
>
|
||||||
|
<Button buttonSize="small" contained={true} text="" />
|
||||||
|
</Toast>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
export default UpdateToast
|
||||||
Loading…
Reference in a new issue