- {mediaQuery ? 'Settings' : '⚙️'}
-
+ // eslint-disable-next-line react/jsx-no-useless-fragment
+ <>
+ {/* FIXME: because of styles */}
+ {isMobile ? (
+
+ {mediaQuery ? 'Settings' : '⚙️'}
+
+ )}
+ >
)}
{mediaQuery && useGetAddress && (
div {
+ height: 100%;
+ }
+}
diff --git a/src/containers/application/UseDesktopVersionBlock/UseDesktopVersionBlock.tsx b/src/containers/application/UseDesktopVersionBlock/UseDesktopVersionBlock.tsx
new file mode 100644
index 000000000..cb58783d4
--- /dev/null
+++ b/src/containers/application/UseDesktopVersionBlock/UseDesktopVersionBlock.tsx
@@ -0,0 +1,15 @@
+import { Display, DisplayTitle } from 'src/components';
+import styles from './UseDesktopVersionBlock.module.scss';
+
+function UseDesktopVersionBlock() {
+ return (
+
+ } color="red">
+ this page not available on mobile
use desktop version for better
+ experience
+
+
+ );
+}
+
+export default UseDesktopVersionBlock;
diff --git a/src/containers/application/mobileAllowedRoutes.ts b/src/containers/application/mobileAllowedRoutes.ts
new file mode 100644
index 000000000..662ae2fa0
--- /dev/null
+++ b/src/containers/application/mobileAllowedRoutes.ts
@@ -0,0 +1,23 @@
+import { routes } from 'src/routes';
+
+// eslint-disable-next-line import/prefer-default-export
+export const mobileAllowedRoutes = [
+ // `/`
+ routes.home.path,
+
+ // oracle
+ routes.oracle,
+ routes.oracle.ask,
+ routes.oracle.learn,
+ routes.oracle.routes.blocks.path,
+ routes.oracle.routes.txs.path,
+ routes.oracle.routes.stats.path,
+ routes.oracle.routes.particles.path,
+
+ routes.robot.path,
+
+ routes.warp.path,
+ routes.social.path,
+
+ // routes.settings.path,
+];
diff --git a/src/containers/ipfs/IPFS.module.scss b/src/containers/ipfs/IPFS.module.scss
index e4b6d1253..347cef441 100644
--- a/src/containers/ipfs/IPFS.module.scss
+++ b/src/containers/ipfs/IPFS.module.scss
@@ -1,3 +1,4 @@
.particle {
min-height: 200px;
+ padding: 0 10px;
}
diff --git a/src/containers/ipfs/ipfs.tsx b/src/containers/ipfs/ipfs.tsx
index 148461af1..c306233bb 100644
--- a/src/containers/ipfs/ipfs.tsx
+++ b/src/containers/ipfs/ipfs.tsx
@@ -40,7 +40,7 @@ function Ipfs() {
})();
}
}, [isText, isReady, query, ipfsApi, isIpfsInitialized]);
- useEffect(() => {}, [details]);
+
useEffect(() => {
if (!status) {
return;
diff --git a/src/features/adviser/AdviserContainer.module.scss b/src/features/adviser/AdviserContainer.module.scss
index 743842e33..c6e800c7a 100644
--- a/src/features/adviser/AdviserContainer.module.scss
+++ b/src/features/adviser/AdviserContainer.module.scss
@@ -1,10 +1,10 @@
.wrapper {
position: sticky;
- top: 80px;
+ top: 70px;
width: 60%;
z-index: 4;
min-height: 60px; // 2 lines of text
- margin: -45px auto 25px;
+ margin: -40px auto 25px;
display: flex;
justify-content: center;
diff --git a/src/hooks/useActiveMenuItem.ts b/src/hooks/useActiveMenuItem.ts
index 38f3b2bf9..0c4a3c8a0 100644
--- a/src/hooks/useActiveMenuItem.ts
+++ b/src/hooks/useActiveMenuItem.ts
@@ -1,6 +1,7 @@
import { MenuItem } from 'src/types/menu';
import { useLocation } from 'react-router-dom';
+// eslint-disable-next-line import/prefer-default-export
export const useActiveMenuItem = (menuItems: MenuItem[]) => {
const location = useLocation();
const isActiveItem = (item: MenuItem) => {
@@ -16,9 +17,11 @@ export const useActiveMenuItem = (menuItems: MenuItem[]) => {
if (item.to === '/senate' && location.pathname.startsWith('/senate/')) {
return true;
}
+
return item.subItems?.some((subItem) => location.pathname === subItem.to);
};
const activeItem = menuItems.find((item) => isActiveItem(item)) || null;
+
return { isActiveItem, activeItem };
};
diff --git a/src/pages/oracle/Learn/Learn.tsx b/src/pages/oracle/Learn/Learn.tsx
index 41ec79e55..65d045b4e 100644
--- a/src/pages/oracle/Learn/Learn.tsx
+++ b/src/pages/oracle/Learn/Learn.tsx
@@ -72,18 +72,18 @@ function Learn() {
if (noPassport) {
content = (
- <>
+
moon citizenship unlocks all
features and takes 3 minutes
- >
+
);
} else if (noEnergy) {
content = (
- <>
+
to cyberlink and learn you need energy
amperes, 💡 and volts, ⚡️ can be produced by freezing hydrogen H in{' '}
HFR
- >
+
);
adviserColor = 'red';
} else {
diff --git a/src/routes.ts b/src/routes.ts
index e123755b9..7852d1b9d 100644
--- a/src/routes.ts
+++ b/src/routes.ts
@@ -111,6 +111,26 @@ export const routes = {
path: '/oracle/ask/:query',
getLink: (query: string) => `/oracle/ask/${query}`,
},
+ routes: {
+ stats: {
+ path: '/oracle/stats',
+ },
+ blocks: {
+ path: '/oracle/blocks',
+ },
+ txs: {
+ path: '/oracle/txs',
+ },
+ particles: {
+ path: '/oracle/particles',
+ },
+ },
+ },
+ nebula: {
+ path: '/nebula',
+ },
+ warp: {
+ path: '/warp',
},
social: {
path: '/social',