WIP: Toast for updates

This commit is contained in:
Justin Edmund 2023-01-24 18:52:12 -08:00
parent 271ec17202
commit f6d0cd7089
2 changed files with 41 additions and 0 deletions

View file

@ -0,0 +1,11 @@
.Notice {
align-items: center;
border-radius: $card-corner;
background: blue;
display: flex;
padding: $unit;
p {
font-size: $font-small;
}
}

View 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