kopia lustrzana https://github.com/bugout-dev/moonstream
fix title
rodzic
6f5a055316
commit
66cd0984dd
|
@ -26,11 +26,6 @@ timeMap[DAY_KEY] = "day";
|
||||||
|
|
||||||
const Analytics = () => {
|
const Analytics = () => {
|
||||||
const { toggleAlert } = useContext(OverlayContext);
|
const { toggleAlert } = useContext(OverlayContext);
|
||||||
useEffect(() => {
|
|
||||||
if (typeof window !== "undefined") {
|
|
||||||
document.title = `NFT Analytics`;
|
|
||||||
}
|
|
||||||
}, []);
|
|
||||||
|
|
||||||
// const [nodesReady, setNodeReady] = useState({
|
// const [nodesReady, setNodeReady] = useState({
|
||||||
// ntx: false,
|
// ntx: false,
|
||||||
|
@ -103,6 +98,16 @@ const Analytics = () => {
|
||||||
|
|
||||||
const { subscriptionsCache } = useSubscriptions();
|
const { subscriptionsCache } = useSubscriptions();
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
if (typeof window !== "undefined") {
|
||||||
|
if (dashboardCache?.data?.data?.resource_data?.name) {
|
||||||
|
document.title = dashboardCache?.data?.data?.resource_data?.name;
|
||||||
|
} else {
|
||||||
|
document.title = `Dashboard`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}, [dashboardCache?.data?.data?.resource_data?.name]);
|
||||||
|
|
||||||
// useLayoutEffect(() => {
|
// useLayoutEffect(() => {
|
||||||
// const items = [
|
// const items = [
|
||||||
// nTxRef_,
|
// nTxRef_,
|
||||||
|
|
Ładowanie…
Reference in New Issue