mirror of
https://github.com/Monadical-SAS/reflector.git
synced 2025-12-20 20:29:06 +00:00
self review
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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 (
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import { get } from "@vercel/edge-config";
|
||||
import { getFiefAuth } from "../../app/lib/fief";
|
||||
import { NextApiRequest, NextApiResponse } from "next";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user