Fix error from previous commit + small optimization

main
Guus van Meerveld 3 years ago
parent c4b9ba011d
commit ae3faccdcf
Signed by: Guusvanmeerveld
GPG Key ID: 2BA7D7912771966E

@ -13,6 +13,9 @@ on:
- next.config.js
- .github/workflows/**
env:
NEXT_TELEMETRY_DISABLED: 1
jobs:
test:
runs-on: ubuntu-latest
@ -31,14 +34,11 @@ jobs:
- name: Lint
run: yarn run lint
env:
NEXT_TELEMETRY_DISABLED: 1
- name: Build website
run: yarn run export
env:
NODE_ENV: production
NEXT_TELEMETRY_DISABLED: 1
- uses: actions/upload-artifact@v3
with:
@ -65,7 +65,6 @@ jobs:
run: yarn run export
env:
NODE_ENV: production
NEXT_TELEMETRY_DISABLED: 1
- name: Deploy to pages
uses: peaceiris/actions-gh-pages@v3

@ -4,13 +4,13 @@ import { Dispatch, SetStateAction } from "react";
import { red } from "@mui/material/colors";
import Settings from "@interfaces/settings";
import Settings, { StorageType } from "@interfaces/settings";
const defaultSettings: Settings = {
primaryColor: red[800],
accentColor: red[800],
invidiousServer: process.env.NEXT_PUBLIC_DEFAULT_SERVER as string,
storageType: "local"
storageType: StorageType.Local
};
export const useSettings = (): [

Loading…
Cancel
Save