add ln icon to login

This commit is contained in:
keyan 2022-09-27 16:27:29 -05:00
parent d9d426e5c3
commit 401efbd550
1 changed files with 8 additions and 1 deletions

View File

@ -14,6 +14,7 @@ import { randInRange } from '../lib/rand'
import { formatSats } from '../lib/format'
import NoteIcon from '../svgs/notification-4-fill.svg'
import { useQuery, gql } from '@apollo/client'
import LightningIcon from '../svgs/bolt.svg'
function WalletSummary ({ me }) {
if (!me) return null
@ -127,9 +128,15 @@ export default function Header ({ sub }) {
}
return path !== '/login' && !path.startsWith('/invites') &&
<Button
className='align-items-center d-flex pl-2 pr-3'
id='login'
onClick={() => signIn(null, { callbackUrl: window.location.origin + router.asPath })}
>login
>
<LightningIcon
width={17}
height={17}
className='mr-1'
/>login
</Button>
}
}