self review

This commit is contained in:
Sara
2023-10-31 19:31:48 +01:00
committed by Mathieu Virbel
parent 6d5c042548
commit 7430996f7f
4 changed files with 1 additions and 8 deletions

View File

@@ -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<number>(1);
const [isLoading, setIsLoading] = useState<boolean>(false);
const isAuthenticated = useFiefIsAuthenticated();
const browseEnabled = featureEnabled("browse");
useEffect(() => {
if (!isAuthenticated) return;

View File

@@ -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 (

View File

@@ -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";

View File

@@ -1,4 +1,3 @@
import { get } from "@vercel/edge-config";
import { getFiefAuth } from "../../app/lib/fief";
import { NextApiRequest, NextApiResponse } from "next";