Fix build

This commit is contained in:
Nayam Amarshe
2023-10-25 17:14:22 +05:30
parent e0d2505b00
commit 523d035ecd
22 changed files with 46 additions and 627 deletions

View File

@@ -21,7 +21,7 @@ import OverwriteToggle from "./OverwriteToggle";
import { UpscaylCloudModal } from "../UpscaylCloudModal";
import { ResetSettings } from "./ResetSettings";
import ProcessImageToggle from "./ProcessImageToggle";
import { FLAGS } from "@/utils/flags";
import { featureFlags } from "@common/feature-flags";
interface IProps {
batchMode: boolean;
@@ -190,7 +190,7 @@ function SettingsTab({
target="_blank">
Read Wiki Guide
</a>
{!FLAGS.APP_STORE_BUILD && <DonateButton />}
{!featureFlags.APP_STORE_BUILD && <DonateButton />}
</div>
<LogArea

View File

@@ -20,7 +20,7 @@ import {
} from "../atoms/userSettingsAtom";
import useLog from "../components/hooks/useLog";
import { UpscaylCloudModal } from "../components/UpscaylCloudModal";
import { FLAGS } from "@/utils/flags";
import { featureFlags } from "@common/feature-flags";
const Home = () => {
// STATES
@@ -505,7 +505,7 @@ const Home = () => {
)}
{/* HEADER */}
<Header version={version} />
{!dontShowCloudModal && !FLAGS.APP_STORE_BUILD && (
{!dontShowCloudModal && !featureFlags.APP_STORE_BUILD && (
<button
className="mb-5 rounded-btn p-1 mx-5 bg-success shadow-lg shadow-success/40 text-slate-50 animate-pulse text-sm"
onClick={() => {

View File

@@ -19,6 +19,12 @@
"@common/*": ["../common/*"]
}
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", "../app.module.ts"],
"include": [
"next-env.d.ts",
"**/*.ts",
"**/*.tsx",
"../app.module.ts",
"../common/**/*"
],
"exclude": ["node_modules"]
}

View File

@@ -1,3 +0,0 @@
export const FLAGS = {
APP_STORE_BUILD: true,
};