mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
fix(web): 🎨 npx prettier --write web/src
This commit is contained in:
parent
3c81ad33ec
commit
861a97c5de
5 changed files with 15 additions and 15 deletions
|
|
@ -2,6 +2,6 @@ import { Language } from "../interfaces/Language";
|
|||
import { useApiData } from "./useApiData";
|
||||
|
||||
export const useLanguages = () =>
|
||||
(
|
||||
useApiData<Language[]>("/api/directory/languages") || []
|
||||
).sort((a: Language, b: Language) => a.name.localeCompare(b.name));
|
||||
(useApiData<Language[]>("/api/directory/languages") || []).sort(
|
||||
(a: Language, b: Language) => a.name.localeCompare(b.name)
|
||||
);
|
||||
|
|
|
|||
|
|
@ -2,6 +2,6 @@ import { License } from "../interfaces/License";
|
|||
import { useApiData } from "./useApiData";
|
||||
|
||||
export const useLicenses = () =>
|
||||
(
|
||||
useApiData<License[]>("/api/directory/licenses") || []
|
||||
).sort((a: License, b: License) => a.name.localeCompare(b.name));
|
||||
(useApiData<License[]>("/api/directory/licenses") || []).sort(
|
||||
(a: License, b: License) => a.name.localeCompare(b.name)
|
||||
);
|
||||
|
|
|
|||
|
|
@ -2,6 +2,6 @@ import { Maintainer } from "../interfaces/Maintainer";
|
|||
import { useApiData } from "./useApiData";
|
||||
|
||||
export const useMaintainers = () =>
|
||||
(
|
||||
useApiData<Maintainer[]>("/api/directory/maintainers") || []
|
||||
).sort((a: Maintainer, b: Maintainer) => a.name.localeCompare(b.name));
|
||||
(useApiData<Maintainer[]>("/api/directory/maintainers") || []).sort(
|
||||
(a: Maintainer, b: Maintainer) => a.name.localeCompare(b.name)
|
||||
);
|
||||
|
|
|
|||
|
|
@ -2,6 +2,6 @@ import { Software } from "../interfaces/Software";
|
|||
import { useApiData } from "./useApiData";
|
||||
|
||||
export const useSoftware = () =>
|
||||
(
|
||||
useApiData<Software[]>("/api/directory/software") || []
|
||||
).sort((a: Software, b: Software) => a.name.localeCompare(b.name));
|
||||
(useApiData<Software[]>("/api/directory/software") || []).sort(
|
||||
(a: Software, b: Software) => a.name.localeCompare(b.name)
|
||||
);
|
||||
|
|
|
|||
|
|
@ -2,6 +2,6 @@ import { Syntax } from "../interfaces/Syntax";
|
|||
import { useApiData } from "./useApiData";
|
||||
|
||||
export const useSyntaxes = () =>
|
||||
(
|
||||
useApiData<Syntax[]>("/api/directory/syntaxes") || []
|
||||
).sort((a: Syntax, b: Syntax) => a.name.localeCompare(b.name));
|
||||
(useApiData<Syntax[]>("/api/directory/syntaxes") || []).sort(
|
||||
(a: Syntax, b: Syntax) => a.name.localeCompare(b.name)
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in a new issue