mirror of
https://github.com/covidpass-org/covidpass.git
synced 2025-02-23 06:57:40 +01:00
added component for nicer list bullets
This commit is contained in:
parent
a61ab43551
commit
c4b0fde7e1
20
components/Bullet.tsx
Normal file
20
components/Bullet.tsx
Normal file
@ -0,0 +1,20 @@
|
||||
import {useTranslation} from 'next-i18next';
|
||||
|
||||
interface BulletProps {
|
||||
text: string;
|
||||
}
|
||||
|
||||
function Bullet(props: BulletProps): JSX.Element {
|
||||
const { t } = useTranslation(["index"]);
|
||||
|
||||
return (
|
||||
<li className="flex flex-row space-x-4 items-center">
|
||||
<svg className="h-5 w-5 mx-2 fill-current text-green-500" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
|
||||
<circle fillRule="evenodd" clipRule="evenodd" cx="10" cy="10" r="5" />
|
||||
</svg>
|
||||
{props.text}
|
||||
</li>
|
||||
)
|
||||
}
|
||||
|
||||
export default Bullet;
|
Loading…
x
Reference in New Issue
Block a user