Add auth icon to chat menu. Closes #1879

This commit is contained in:
Gabe Kangas
2022-04-25 15:34:19 -07:00
parent 6ee88f8a7d
commit 7a503fc282
3 changed files with 25 additions and 2 deletions

View File

@@ -2,7 +2,7 @@ import { h, createContext } from '/js/web_modules/preact.js';
import htm from '/js/web_modules/htm.js';
import { useState, useEffect, useRef } from '/js/web_modules/preact/hooks.js';
import UsernameForm from './username.js';
import { ChatIcon, UserIcon, CaretDownIcon } from '../icons/index.js';
import { ChatIcon, UserIcon, CaretDownIcon, AuthIcon } from '../icons/index.js';
const html = htm.bind(h);
@@ -40,7 +40,7 @@ export const ChatMenu = (props) => {
html`<li>
<button type="button" id="chat-auth" onClick=${showAuthModal}>
Authenticate
<span><${ChatIcon} /></span>
<span><${AuthIcon} /></span>
</button>
</li>`;