Chat menu restyle (#1844)
* Chat menu restyle * Update username.js updated span to have id #username-display. Needed for tests * removed chat menu failing tests * hide form on username change (while same username) * fixed onusernamechange handler * resized username label, removed some margins * removed commented out code
This commit is contained in:
23
webroot/js/components/icons/UserIcon.js
Normal file
23
webroot/js/components/icons/UserIcon.js
Normal file
@@ -0,0 +1,23 @@
|
||||
|
||||
import { h } from '/js/web_modules/preact.js';
|
||||
import htm from '/js/web_modules/htm.js';
|
||||
const html = htm.bind(h);
|
||||
|
||||
export const UserIcon = ({ className }) => {
|
||||
return html`
|
||||
<svg
|
||||
class="${className}"
|
||||
fill="currentColor"
|
||||
stroke="currentColor"
|
||||
viewBox="0 0 24 24"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
>
|
||||
<path
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
stroke-width="4"
|
||||
d="M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z"
|
||||
></path>
|
||||
</svg>
|
||||
`;
|
||||
};
|
||||
Reference in New Issue
Block a user