[Glitch] Change design of lists in web UI

Port 62603508c7 to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
Claire
2024-11-24 19:04:05 +01:00
parent 2259949e9b
commit 217e0f87fd
37 changed files with 1368 additions and 1337 deletions

View File

@@ -0,0 +1,15 @@
import { createSelector } from '@reduxjs/toolkit';
import type { Map as ImmutableMap } from 'immutable';
import type { List } from 'flavours/glitch/models/list';
import type { RootState } from 'flavours/glitch/store';
export const getOrderedLists = createSelector(
[(state: RootState) => state.lists],
(lists: ImmutableMap<string, List | null>) =>
lists
.toList()
.filter((item: List | null) => !!item)
.sort((a: List, b: List) => a.title.localeCompare(b.title))
.toArray(),
);