fix(lib): login info box (#345)

* login info box

* fixed linting

* fix linting

---------

Co-authored-by: Ulf Gebhardt <ulf.gebhardt@webcraft-media.de>
This commit is contained in:
Anton Tranelis 2025-09-02 11:56:15 +02:00 committed by GitHub
parent 138874cef4
commit 02e5598266
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -130,6 +130,25 @@ export function LoginPage({ inviteApi, showRequestPassword }: Props) {
{showRequestPassword && ( {showRequestPassword && (
<> <>
<div className='tw:divider tw:w-full'>OR</div> <div className='tw:divider tw:w-full'>OR</div>
<div role='alert' className='tw:alert tw:mb-2'>
<svg
xmlns='http://www.w3.org/2000/svg'
fill='none'
viewBox='0 0 24 24'
className='tw:h-6 tw:w-6 tw:shrink-0 tw:stroke-current'
>
<path
strokeLinecap='round'
strokeLinejoin='round'
strokeWidth='2'
d='M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z'
></path>
</svg>
<span>
The map requires an additional password. If you don&apos;t have it yet, you can
request one.
</span>
</div>
<Link to='/reset-password' className='tw:w-full'> <Link to='/reset-password' className='tw:w-full'>
<button className='tw:btn tw:btn-primary tw:btn-block'>{'Request Password'}</button> <button className='tw:btn tw:btn-primary tw:btn-block'>{'Request Password'}</button>
</Link> </Link>