Skip to content

Commit

Permalink
Try fix eslint idk
Browse files Browse the repository at this point in the history
  • Loading branch information
UnsignedArduino committed Feb 13, 2024
1 parent 83fdc3b commit 4e75e1d
Show file tree
Hide file tree
Showing 3 changed files with 181 additions and 503 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/eslint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
node-version: 21
- run: yarn install
- uses: sibiraj-s/action-eslint@v2
with:
Expand Down
17 changes: 12 additions & 5 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,15 @@ import getAppProps, { AppProps } from "../components/WithAppProps";
import generateSiteWebmanifest from "../scripts/Utils/SiteWebmanifest/manifest";
import Link from "next/link";
import { useSession } from "next-auth/react";
import { useFeatureIsOn } from "@growthbook/growthbook-react";

const pageName = "Home";

type HomeProps = { appProps: AppProps };

export function Home({ appProps }: HomeProps): JSX.Element {
const removeOldHome = useFeatureIsOn("remove-old-home");

const { data: session } = useSession();

type QuickLinkPage = {
Expand Down Expand Up @@ -94,10 +97,14 @@ export function Home({ appProps }: HomeProps): JSX.Element {
Please note that this website is not developed, affiliated, or endorsed
by Microsoft, the owner of MakeCode Arcade.
</p>
<p>
You can find the old home page <Link href="/old">here</Link>. (please
note that this page will be removed soon.)
</p>
{removeOldHome ? (
<></>
) : (
<p>
You can find the old home page <Link href="/old">here</Link>. (please
note that this page will be removed soon.)
</p>
)}
<p>
Want to suggest a new extension, tool, or modification? Head over to our
GitHub repository and file an{" "}
Expand All @@ -119,7 +126,7 @@ export async function getStaticProps(): Promise<{
}> {
await fs.writeFile(
"./public/site.webmanifest",
await generateSiteWebmanifest()
await generateSiteWebmanifest(),
);

return {
Expand Down
Loading

0 comments on commit 4e75e1d

Please sign in to comment.