diff --git a/packages/builder/tailwind.config.js b/packages/builder/tailwind.config.js index e7dd90d12e..e4329a5afd 100644 --- a/packages/builder/tailwind.config.js +++ b/packages/builder/tailwind.config.js @@ -1,7 +1,7 @@ module.exports = { // if this is not set it will default to user's operating system preferences darkMode: "class", - content: ["./src/**/*.{js,jsx,ts,tsx}"], + content: ["./src/**/*.{js,jsx,ts,tsx}", "../common/src/**/*.{js,jsx,ts,tsx}"], theme: { extend: { boxShadow: { diff --git a/packages/common/src/components/Footer.tsx b/packages/common/src/components/Footer.tsx index 4a24a6a176..76f20433de 100644 --- a/packages/common/src/components/Footer.tsx +++ b/packages/common/src/components/Footer.tsx @@ -2,7 +2,7 @@ import Discord from "../icons/Discord"; import Support from "../icons/Support"; import Github from "../icons/Github"; import Gitbook from "../icons/Gitbook"; -import { getConfig } from "../config"; +import { getConfig, setLocalStorageConfigOverride } from "../config"; const navigation = [ { @@ -31,17 +31,35 @@ const navigation = [ }, ]; +const config = getConfig(); const COMMIT_HASH = process.env.REACT_APP_GIT_SHA ?? "localhost"; -const ALLO_VERSION = getConfig().allo.version; +const ALLO_VERSION = config.allo.version; + +function switchAlloVersion(version: string) { + setLocalStorageConfigOverride("allo-version", version); + window.location.reload(); +} export default function Footer() { + const alloVersionAlternative = + ALLO_VERSION === "allo-v1" ? "allo-v2" : "allo-v1"; + return ( -