mirror of
https://github.com/rowyio/rowy.git
synced 2025-12-29 00:16:39 +01:00
sync changes with rowy.app
This commit is contained in:
@@ -19,7 +19,7 @@ export const EXTERNAL_LINKS = {
|
||||
rowyAppHostName: "rowy.app",
|
||||
|
||||
dateFormat: "https://date-fns.org/v2.24.0/docs/format",
|
||||
};
|
||||
} as const;
|
||||
|
||||
const WIKI_PATHS = {
|
||||
setup: "/setup/install",
|
||||
|
||||
@@ -1,35 +0,0 @@
|
||||
import { useState } from "react";
|
||||
import { useSetAtom } from "jotai";
|
||||
import { firebaseConfigAtom } from "@src/sources/ProjectSourceFirebase";
|
||||
import { globalScope } from "@src/atoms/globalScope";
|
||||
|
||||
const envConfig = {
|
||||
apiKey: process.env.REACT_APP_FIREBASE_PROJECT_WEB_API_KEY,
|
||||
authDomain: `${process.env.REACT_APP_FIREBASE_PROJECT_ID}.firebaseapp.com`,
|
||||
databaseURL: `https://${process.env.REACT_APP_FIREBASE_PROJECT_ID}.firebaseio.com`,
|
||||
projectId: process.env.REACT_APP_FIREBASE_PROJECT_ID,
|
||||
storageBucket: `${process.env.REACT_APP_FIREBASE_PROJECT_ID}.appspot.com`,
|
||||
appId: "x",
|
||||
};
|
||||
|
||||
export default function RowyProject({ children }: React.PropsWithChildren<{}>) {
|
||||
const [hasConfig, setHasConfig] = useState(false);
|
||||
const setConfigAtom = useSetAtom(firebaseConfigAtom, globalScope);
|
||||
|
||||
if (!hasConfig) {
|
||||
return (
|
||||
<div>
|
||||
<button
|
||||
onClick={() => {
|
||||
setConfigAtom(envConfig);
|
||||
setHasConfig(true);
|
||||
}}
|
||||
>
|
||||
Load Firebase project
|
||||
</button>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
return <>{children}</>;
|
||||
}
|
||||
@@ -189,7 +189,7 @@ export const colorsDark = (
|
||||
components: {
|
||||
MuiCssBaseline: {
|
||||
styleOverrides: {
|
||||
":root": { colorScheme: "dark" },
|
||||
// ":root": { colorScheme: "dark" },
|
||||
".rdg": { colorScheme: "dark" },
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user