Introduce ability to disable editing the UI (useful for hosted demos) (#48)

This commit is contained in:
Neil Dwyer
2024-05-06 12:13:45 -07:00
committed by GitHub
parent 5b99dae15f
commit 95387d73bc
7 changed files with 39 additions and 21 deletions

View File

@@ -31,6 +31,7 @@ export const TokenGeneratorProvider = ({
const [shouldConnect, setShouldConnect] = useState(false);
const connect = useCallback(
async (mode: Mode) => {
console.log("connecting", mode);
if (mode === "cloud") {
if (!generateConnectionDetails) {
throw new Error(