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:
14
webroot/js/components/icons/EditIcon.js
Normal file
14
webroot/js/components/icons/EditIcon.js
Normal file
@@ -0,0 +1,14 @@
|
||||
|
||||
import { h } from '/js/web_modules/preact.js';
|
||||
import htm from '/js/web_modules/htm.js';
|
||||
const html = htm.bind(h);
|
||||
|
||||
export const EditIcon = ({ className = 'w-6 h-6' }) => {
|
||||
return html`<svg class="${className}"
|
||||
fill="currentColor"
|
||||
viewBox="0 0 20 20"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
>
|
||||
<path d="M13.586 3.586a2 2 0 112.828 2.828l-.793.793-2.828-2.828.793-.793zM11.379 5.793L3 14.172V17h2.828l8.38-8.379-2.83-2.828z"></path>
|
||||
</svg>`
|
||||
}
|
||||
Reference in New Issue
Block a user