mirror of
https://github.com/tiennm99/noitu.git
synced 2026-10-16 16:15:51 +00:00
refactor(web): share alert banner and turn actions, fix restyle leaks
Add AlertBanner and turnActions to replace duplicated markup and wrappers, and share component-test setup. Fixes: oversized dismiss, help, rules and skip-link text after the type ramp collapse; report button hover styled as submit; chat draft lost when the panel folds; resign/claim/kick styles leaking app-wide.
This commit is contained in:
1 parent
55abdb36c1
commit
9be86a3cad
18 files changed
+481
-470
No files matched your search
@@ -74,7 +74,7 @@ describe('normalizeRoomCode', () => {
|
||||
|
||||
it('handles nothing at all', () => {
|
||||
expect(normalizeRoomCode('')).toBe('');
|
||||
expect(normalizeRoomCode(/** @type {any} */ (undefined))).toBe('');
|
||||
expect(normalizeRoomCode(/** @type {string} */ (/** @type {unknown} */ (undefined)))).toBe('');
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user