diff --git a/src/features/cyberlinks/CyberlinksGraph/useCyberlinks.ts b/src/features/cyberlinks/CyberlinksGraph/useCyberlinks.ts index 4aba8a58f..76a7bab7f 100644 --- a/src/features/cyberlinks/CyberlinksGraph/useCyberlinks.ts +++ b/src/features/cyberlinks/CyberlinksGraph/useCyberlinks.ts @@ -20,8 +20,6 @@ function useCyberlinks( where = '{}'; } - console.time('prepareCyberlinks'); - const query = useQuery( gql` query Cyberlinks { @@ -72,8 +70,6 @@ function useCyberlinks( }; } - console.timeEnd('prepareCyberlinks'); - return { nodes: object, links: links, diff --git a/src/pages/oracle/landing/OracleLanding.module.scss b/src/pages/oracle/landing/OracleLanding.module.scss index 5289b9112..5e17f369d 100644 --- a/src/pages/oracle/landing/OracleLanding.module.scss +++ b/src/pages/oracle/landing/OracleLanding.module.scss @@ -9,17 +9,14 @@ $mobile-breakpoint: 480px; flex-direction: column; justify-content: space-between; // header, footer widths, TODO: use variables - min-height: calc(100vh - 120px - 60px - 45px); + min-height: calc(100vh - 120px - 60px - 100px); padding: 0 10px; // not good, need fix wrapper margin-bottom: 100px; - margin-top: -15px; @media (width <= $mobile-breakpoint) { - // padding: 0 50px; - .actionBarBtn { min-width: 107px; } @@ -41,6 +38,11 @@ $mobile-breakpoint: 480px; margin: 0px auto; width: 415px; + // because of adviser container + position: relative; + top: -45px; + z-index: 5; + @media (width <= $mobile-breakpoint) { width: unset; diff --git a/src/pages/oracle/landing/OracleLanding.tsx b/src/pages/oracle/landing/OracleLanding.tsx index 845012871..86ac7f726 100644 --- a/src/pages/oracle/landing/OracleLanding.tsx +++ b/src/pages/oracle/landing/OracleLanding.tsx @@ -1,6 +1,6 @@ -import { ActionBar, Button } from 'src/components'; +import { ActionBar, Button, Tabs } from 'src/components'; import { routes } from 'src/routes'; -import { useEffect, useMemo, useRef, useState } from 'react'; +import { useEffect, useRef, useState } from 'react'; import CyberlinksGraphContainer from 'src/features/cyberlinks/CyberlinksGraph/CyberlinksGraphContainer'; import { Stars } from 'src/containers/portal/components'; @@ -8,7 +8,6 @@ import { useDevice } from 'src/contexts/device'; import { useAppDispatch } from 'src/redux/hooks'; import { setFocus } from 'src/containers/application/Header/Commander/commander.redux'; -import Carousel from 'src/components/Tabs/Carousel/Carousel'; import { Link, useNavigate, useSearchParams } from 'react-router-dom'; import styles from './OracleLanding.module.scss'; import KeywordButton from './components/KeywordButton/KeywordButton'; @@ -116,15 +115,6 @@ function OracleLanding() { const { title, description, text } = listConfig[titleType]; - const listSlides = useMemo(() => { - return [TitleType.search, TitleType.ai, TitleType.learning].map((type) => { - return { - title: mapTitleTypeToTitle[type], - // step: type, - }; - }); - }, []); - return (
@@ -132,17 +122,22 @@ function OracleLanding() {
- { - setTitleType(index); - navigate(`?${QUERY_KEY}=${mapTitleTypeToTitle[index]}`, { - replace: true, - }); - }} - slides={listSlides} + { + return { + onClick: () => { + setTitleType(type); + // navigate(`?${QUERY_KEY}=${mapTitleTypeToTitle[index]}`, { + // replace: true, + // }); + }, + text: mapTitleTypeToTitle[type], + key: type, + }; + } + )} + selected={titleType} />