mirror of
https://github.com/zkldi/Tachi.git
synced 2026-10-02 11:58:12 +03:00
Fix advanced mode
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
import useSetSubheader from "components/layout/header/useSetSubheader";
|
||||
import QuickTooltip from "components/layout/misc/QuickTooltip";
|
||||
import Card from "components/layout/page/Card";
|
||||
import LampCell from "components/tables/cells/LampCell";
|
||||
import ScoreCell from "components/tables/cells/ScoreCell";
|
||||
@@ -32,7 +31,7 @@ import { PBDataset } from "types/tables";
|
||||
import { APIFetchV1, UnsuccessfulAPIFetchResponse } from "util/api";
|
||||
import { CreateUserMap } from "util/data";
|
||||
import { SelectRightChart } from "util/misc";
|
||||
import { FormatDate, MillisToSince } from "util/time";
|
||||
import { MillisToSince } from "util/time";
|
||||
|
||||
// This component forms a wrapper around the Real GPT Chart Page
|
||||
// which handles the case where activeChart == null.
|
||||
|
||||
@@ -111,7 +111,7 @@ function PreferencesForm({ reqUser }: { reqUser: PublicUserDocument }) {
|
||||
<Form.Check
|
||||
type="checkbox"
|
||||
id="advancedMode"
|
||||
checked={formik.values.developerMode}
|
||||
checked={formik.values.advancedMode}
|
||||
onChange={formik.handleChange}
|
||||
label="Advanced Mode"
|
||||
/>
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import MiniTable from "components/tables/components/MiniTable";
|
||||
import DebugContent from "components/util/DebugContent";
|
||||
import Divider from "components/util/Divider";
|
||||
import useImport from "components/util/import/useImport";
|
||||
import prettyBytes from "pretty-bytes";
|
||||
|
||||
@@ -6,15 +6,12 @@ import ExternalLink from "components/util/ExternalLink";
|
||||
import useImport from "components/util/import/useImport";
|
||||
import Loading from "components/util/Loading";
|
||||
import useApiQuery from "components/util/query/useApiQuery";
|
||||
import UpdateUserGameStats from "components/util/UpdateUserGameStats";
|
||||
import { UserContext } from "context/UserContext";
|
||||
import { UserGameStatsContext } from "context/UserGameStatsContext";
|
||||
import hashjs from "hash.js";
|
||||
import React, { useContext, useMemo, useState } from "react";
|
||||
import { Button, Form, InputGroup } from "react-bootstrap";
|
||||
import { APIImportTypes, GetGameConfig, ImportDocument } from "tachi-common";
|
||||
import { ImportStates, NotStartedState } from "types/import";
|
||||
import { APIFetchV1 } from "util/api";
|
||||
import { APIImportTypes, GetGameConfig } from "tachi-common";
|
||||
import ImportStateRenderer from "./ImportStateRenderer";
|
||||
|
||||
interface Props {
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
import React from "react";
|
||||
import { Header } from "./header/Header";
|
||||
import { HeaderMobile } from "./header/HeaderMobile";
|
||||
import { Footer } from "./footer/Footer";
|
||||
import { LayoutInit } from "../../_metronic/layout/components/LayoutInit";
|
||||
import { SubHeader } from "./subheader/SubHeader";
|
||||
import { AnimateLoading } from "../../_metronic/_partials/controls";
|
||||
import { JustChildren } from "types/react";
|
||||
import BackgroundImage from "components/layout/misc/BackgroundImage";
|
||||
import { BackgroundContextProvider } from "context/BackgroundContext";
|
||||
import React from "react";
|
||||
import { JustChildren } from "types/react";
|
||||
import { LayoutInit } from "../../_metronic/layout/components/LayoutInit";
|
||||
import { AnimateLoading } from "../../_metronic/_partials/controls";
|
||||
import { Footer } from "./footer/Footer";
|
||||
import { Header } from "./header/Header";
|
||||
import { HeaderMobile } from "./header/HeaderMobile";
|
||||
import { SubHeader } from "./subheader/SubHeader";
|
||||
|
||||
export function Layout({ children }: JustChildren) {
|
||||
return (
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import { nanoid } from "nanoid";
|
||||
import React from "react";
|
||||
import { OverlayTrigger, Tooltip } from "react-bootstrap";
|
||||
import { JustChildren } from "types/react";
|
||||
|
||||
export default function QuickTooltip({
|
||||
children,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { UserContext } from "context/UserContext";
|
||||
import { TachiConfig } from "lib/config";
|
||||
import React, { useContext, useState, useEffect } from "react";
|
||||
import React, { useContext, useEffect, useState } from "react";
|
||||
import { PublicUserDocument } from "tachi-common";
|
||||
import { JustChildren } from "types/react";
|
||||
import { APIFetchV1 } from "util/api";
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import React, { useContext } from "react";
|
||||
import { Breadcrumbs } from "./components/Breadcrumbs";
|
||||
import { SubheaderContext } from "../../../context/SubheaderContext";
|
||||
import Divider from "components/util/Divider";
|
||||
import React, { useContext } from "react";
|
||||
import { SubheaderContext } from "../../../context/SubheaderContext";
|
||||
import { Breadcrumbs } from "./components/Breadcrumbs";
|
||||
|
||||
export function SubHeader() {
|
||||
const subheader = useContext(SubheaderContext);
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import React, { CSSProperties } from "react";
|
||||
import Loading from "components/util/Loading";
|
||||
import React, { CSSProperties } from "react";
|
||||
import { UnsuccessfulAPIResponse } from "tachi-common";
|
||||
|
||||
export default function LoadingWrapper({
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import React from "react";
|
||||
import { Button, Nav } from "react-bootstrap";
|
||||
import { Nav } from "react-bootstrap";
|
||||
import { JustChildren, SetState } from "types/react";
|
||||
|
||||
export default function SelectNav<T>({
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/* eslint-disable no-await-in-loop */
|
||||
import { useState } from "react";
|
||||
import { ImportDocument, integer, SuccessfulAPIResponse } from "tachi-common";
|
||||
import { ImportDocument, integer } from "tachi-common";
|
||||
import { ImportStates, NotStartedState } from "types/import";
|
||||
import { APIFetchV1 } from "util/api";
|
||||
import { Sleep } from "util/misc";
|
||||
|
||||
Reference in New Issue
Block a user