diff --git a/www/app/[domain]/browse/page.tsx b/www/app/[domain]/browse/page.tsx index 49dffb81..21f28c81 100644 --- a/www/app/[domain]/browse/page.tsx +++ b/www/app/[domain]/browse/page.tsx @@ -12,8 +12,6 @@ import Link from "next/link"; import { useFiefIsAuthenticated } from "@fief/fief/nextjs/react"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { faGear } from "@fortawesome/free-solid-svg-icons"; -import { featureEnabled } from "../domainContext"; -import router from "next/router"; export default function TranscriptBrowser() { const api = getApi(); @@ -21,7 +19,6 @@ export default function TranscriptBrowser() { const [page, setPage] = useState(1); const [isLoading, setIsLoading] = useState(false); const isAuthenticated = useFiefIsAuthenticated(); - const browseEnabled = featureEnabled("browse"); useEffect(() => { if (!isAuthenticated) return; diff --git a/www/app/[domain]/layout.tsx b/www/app/[domain]/layout.tsx index 980a931f..ea2f9baa 100644 --- a/www/app/[domain]/layout.tsx +++ b/www/app/[domain]/layout.tsx @@ -69,11 +69,8 @@ type LayoutProps = { export default async function RootLayout({ children, params }: LayoutProps) { const config = await get(params.domain); - // console.log(config); const requireLogin = config ? config["features"]["requireLogin"] : false; - // console.log(requireLogin); const privacy = config ? config["features"]["privacy"] : true; - const browse = config ? config["features"]["browse"] : true; return ( diff --git a/www/app/[domain]/transcripts/new/page.tsx b/www/app/[domain]/transcripts/new/page.tsx index b2d19a5a..045c2db5 100644 --- a/www/app/[domain]/transcripts/new/page.tsx +++ b/www/app/[domain]/transcripts/new/page.tsx @@ -1,5 +1,5 @@ "use client"; -import React, { useContext, useEffect, useState } from "react"; +import React, { useEffect, useState } from "react"; import useAudioDevice from "../useAudioDevice"; import "react-select-search/style.css"; import "../../../styles/button.css"; diff --git a/www/pages/api/current-user.ts b/www/pages/api/current-user.ts index 8cda77a2..bd53dbc7 100644 --- a/www/pages/api/current-user.ts +++ b/www/pages/api/current-user.ts @@ -1,4 +1,3 @@ -import { get } from "@vercel/edge-config"; import { getFiefAuth } from "../../app/lib/fief"; import { NextApiRequest, NextApiResponse } from "next";