fix extensions not showing the all pesudo-language

This commit is contained in:
Aria Moradi 2021-03-16 16:09:20 +03:30
parent 79bab08cae
commit 257f8a5a27

View File

@ -35,9 +35,13 @@ function groupExtensions(extensions: IExtension[]) {
return result; return result;
} }
function extensionDefaultLangs() {
return [...defualtLangs(), 'all'];
}
export default function Extensions() { export default function Extensions() {
const { setTitle, setAction } = useContext(NavbarContext); const { setTitle, setAction } = useContext(NavbarContext);
const [shownLangs, setShownLangs] = useLocalStorage<string[]>('shownExtensionLangs', defualtLangs()); const [shownLangs, setShownLangs] = useLocalStorage<string[]>('shownExtensionLangs', extensionDefaultLangs());
useEffect(() => { useEffect(() => {
setTitle('Extensions'); setTitle('Extensions');