This commit is contained in:
Sean Edmunds
2025-03-28 15:17:59 -05:00
parent 332c759ed0
commit b741903649
7 changed files with 16 additions and 12 deletions

View File

@@ -14,7 +14,9 @@ function Applications({ contentType }: any) {
useEffect(() => {
if (apps && !isAppsFetching) {
setApplicationData(apps);
setApplicationData(
apps.sort((a: Application, b: Application) => (a.name > b.name ? 1 : -1)),
);
}
}, [apps, isAppsFetching]);
@@ -35,7 +37,6 @@ function Applications({ contentType }: any) {
gridRowGap: '5px',
gridTemplateColumns: isMobile ? '1fr 1fr 1fr' : '1fr 1fr 1fr 1fr 1fr 1fr',
gridTemplateRows: '64px',
paddingBottom: 'var(--module-spacing)',
}}
>
{applicationData?.map((application: any) => {

View File

@@ -10,6 +10,7 @@ function LinkGroups({ links, category }: any) {
display: 'block',
lineHeight: '1.5rem',
overflow: 'hidden',
whiteSpace: 'nowrap',
}}
>
<Text className={textClasses.linkCategory} classNames={textClasses}>

View File

@@ -54,9 +54,11 @@ const ApplicationSettings = () => {
useEffect(() => {
if (apps && !isAppsFetching) {
setApplicationData(
apps.filter((a: Application) =>
a.name.toLowerCase().includes(debouncedSearch.toLowerCase()),
),
apps
.filter((a: Application) =>
a.name.toLowerCase().includes(debouncedSearch.toLowerCase()),
)
.sort((a: Application, b: Application) => (a.name > b.name ? 1 : -1)),
);
}
}, [apps, isAppsFetching, debouncedSearch]);

View File

@@ -51,9 +51,11 @@ const SearchProviderSettings = () => {
useEffect(() => {
if (providers && providersIsFetched) {
setProviderData(
providers.filter((a: Provider) =>
a.name.toLowerCase().includes(debouncedSearch.toLowerCase()),
),
providers
.filter((a: Provider) =>
a.name.toLowerCase().includes(debouncedSearch.toLowerCase()),
)
.sort((a: Provider, b: Provider) => (a.prefix > b.prefix ? 1 : -1)),
);
}
}, [providers, providersIsFetched, debouncedSearch]);

View File

@@ -189,6 +189,7 @@ function ThemePlaylists() {
?.filter((a: ThemePlaylist) =>
a.name.toLowerCase().includes(debouncedSearch.toLowerCase()),
)
.sort((a: any, b: any) => (a.name > b.name ? 1 : -1))
.map((cardPlaylist: ThemePlaylist) => {
return (
<Group key={cardPlaylist.name} pos={'relative'}>