kopia lustrzana https://github.com/bugout-dev/moonstream
commit
7fa5584a40
|
@ -58,6 +58,12 @@ const Security = () => {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
if (typeof window !== "undefined") {
|
||||||
|
document.title = `Change password`;
|
||||||
|
}
|
||||||
|
}, []);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (data) router.push("/");
|
if (data) router.push("/");
|
||||||
}, [data, router]);
|
}, [data, router]);
|
||||||
|
|
|
@ -1,10 +1,16 @@
|
||||||
import React from "react";
|
import React, { useEffect } from "react";
|
||||||
import HubspotForm from "react-hubspot-form";
|
import HubspotForm from "react-hubspot-form";
|
||||||
import { getLayout } from "../src/layouts/AppLayout";
|
import { getLayout } from "../src/layouts/AppLayout";
|
||||||
import { Spinner, Flex, Heading } from "@chakra-ui/react";
|
import { Spinner, Flex, Heading } from "@chakra-ui/react";
|
||||||
import Scrollable from "../src/components/Scrollable";
|
import Scrollable from "../src/components/Scrollable";
|
||||||
|
|
||||||
const Analytics = () => {
|
const Analytics = () => {
|
||||||
|
useEffect(() => {
|
||||||
|
if (typeof window !== "undefined") {
|
||||||
|
document.title = `Analytics: Page under construction`;
|
||||||
|
}
|
||||||
|
}, []);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Scrollable>
|
<Scrollable>
|
||||||
<Flex
|
<Flex
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import React, { useContext } from "react";
|
import React, { useContext, useEffect } from "react";
|
||||||
import { getLayout } from "../../src/layouts/EntriesLayout";
|
import { getLayout } from "../../src/layouts/EntriesLayout";
|
||||||
import StreamEntryDetails from "../../src/components/SteamEntryDetails";
|
import StreamEntryDetails from "../../src/components/SteamEntryDetails";
|
||||||
import UIContext from "../../src/core/providers/UIProvider/context";
|
import UIContext from "../../src/core/providers/UIProvider/context";
|
||||||
|
@ -13,7 +13,16 @@ import {
|
||||||
const Entry = () => {
|
const Entry = () => {
|
||||||
const ui = useContext(UIContext);
|
const ui = useContext(UIContext);
|
||||||
|
|
||||||
// return "";
|
useEffect(() => {
|
||||||
|
if (typeof window !== "undefined") {
|
||||||
|
if (ui.currentTransaction) {
|
||||||
|
document.title = `Stream details: ${ui.currentTransaction.hash}`;
|
||||||
|
} else {
|
||||||
|
document.title = `Stream`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}, [ui.currentTransaction]);
|
||||||
|
|
||||||
if (ui.currentTransaction) {
|
if (ui.currentTransaction) {
|
||||||
return <StreamEntryDetails />;
|
return <StreamEntryDetails />;
|
||||||
} else
|
} else
|
||||||
|
|
Ładowanie…
Reference in New Issue