diff --git a/src/pages/TrueSightV2/components/chart/index.tsx b/src/pages/TrueSightV2/components/chart/index.tsx index f3a17e3cb4..cf5121a579 100644 --- a/src/pages/TrueSightV2/components/chart/index.tsx +++ b/src/pages/TrueSightV2/components/chart/index.tsx @@ -925,12 +925,12 @@ export const NetflowToWhaleWallets = ({ tab, noAnimation }: { tab?: ChartTab; no const theme = useTheme() const { chain, address } = useParams() const { state, dispatch } = useChartStatesContext(KYBERAI_CHART_ID.NETFLOW_TO_WHALE_WALLET, { - timeframe: KyberAITimeframe.ONE_MONTH, + timeframe: KyberAITimeframe.ONE_WEEK, showOptions: ['showInflow', 'showOutflow', 'showNetflow'], noData: true, }) - const timeframe = state?.timeframe || KyberAITimeframe.ONE_MONTH + const timeframe = state?.timeframe || KyberAITimeframe.ONE_WEEK const showInflow = state?.showOptions?.includes('showInflow') const showOutflow = state?.showOptions?.includes('showOutflow') const showNetflow = state?.showOptions?.includes('showNetflow') @@ -940,6 +940,7 @@ export const NetflowToWhaleWallets = ({ tab, noAnimation }: { tab?: ChartTab; no const timerange = { [KyberAITimeframe.ONE_DAY]: 3600, + [KyberAITimeframe.THREE_DAY]: 3600, [KyberAITimeframe.ONE_WEEK]: 86400, [KyberAITimeframe.ONE_MONTH]: 86400, [KyberAITimeframe.THREE_MONTHS]: 86400, @@ -948,6 +949,7 @@ export const NetflowToWhaleWallets = ({ tab, noAnimation }: { tab?: ChartTab; no now - ({ [KyberAITimeframe.ONE_DAY]: 86400, + [KyberAITimeframe.THREE_DAY]: 259200, [KyberAITimeframe.ONE_WEEK]: 604800, [KyberAITimeframe.ONE_MONTH]: 2592000, [KyberAITimeframe.THREE_MONTHS]: 7776000, @@ -1173,6 +1175,7 @@ export const NetflowToWhaleWallets = ({ tab, noAnimation }: { tab?: ChartTab; no } timeframes={[ KyberAITimeframe.ONE_DAY, + KyberAITimeframe.THREE_DAY, KyberAITimeframe.ONE_WEEK, KyberAITimeframe.ONE_MONTH, KyberAITimeframe.THREE_MONTHS, @@ -1358,12 +1361,12 @@ export const NetflowToCentralizedExchanges = ({ tab, noAnimation }: { tab?: Char const theme = useTheme() const { chain, address } = useParams() const { state, dispatch } = useChartStatesContext(KYBERAI_CHART_ID.NETFLOW_TO_CEX, { - timeframe: KyberAITimeframe.ONE_MONTH, + timeframe: KyberAITimeframe.ONE_WEEK, showOptions: ['showInflow', 'showOutflow', 'showNetflow'], noData: true, }) - const timeframe = state?.timeframe || KyberAITimeframe.ONE_MONTH + const timeframe = state?.timeframe || KyberAITimeframe.ONE_WEEK const showInflow = state?.showOptions?.includes('showInflow') const showOutflow = state?.showOptions?.includes('showOutflow') const showNetflow = state?.showOptions?.includes('showNetflow') @@ -1373,6 +1376,7 @@ export const NetflowToCentralizedExchanges = ({ tab, noAnimation }: { tab?: Char const timerange = { [KyberAITimeframe.ONE_DAY]: 3600, + [KyberAITimeframe.THREE_DAY]: 3600, [KyberAITimeframe.ONE_WEEK]: 86400, [KyberAITimeframe.ONE_MONTH]: 86400, [KyberAITimeframe.THREE_MONTHS]: 86400, @@ -1381,6 +1385,7 @@ export const NetflowToCentralizedExchanges = ({ tab, noAnimation }: { tab?: Char now - ({ [KyberAITimeframe.ONE_DAY]: 86400, + [KyberAITimeframe.THREE_DAY]: 259200, [KyberAITimeframe.ONE_WEEK]: 604800, [KyberAITimeframe.ONE_MONTH]: 2592000, [KyberAITimeframe.THREE_MONTHS]: 7776000, @@ -1564,6 +1569,7 @@ export const NetflowToCentralizedExchanges = ({ tab, noAnimation }: { tab?: Char onSelect={timeframe => dispatch({ type: CHART_STATES_ACTION_TYPE.TIMEFRAME_CHANGE, payload: { timeframe } })} timeframes={[ KyberAITimeframe.ONE_DAY, + KyberAITimeframe.THREE_DAY, KyberAITimeframe.ONE_WEEK, KyberAITimeframe.ONE_MONTH, KyberAITimeframe.THREE_MONTHS, diff --git a/src/pages/TrueSightV2/components/table/index.tsx b/src/pages/TrueSightV2/components/table/index.tsx index 2b08cc48d0..d788ccab0e 100644 --- a/src/pages/TrueSightV2/components/table/index.tsx +++ b/src/pages/TrueSightV2/components/table/index.tsx @@ -211,7 +211,7 @@ export const Top10HoldersTable = () => { window.open(getEtherscanLink(NETWORK_TO_CHAINID[chain], item.address, 'address'), '_blank') }} > - Analyze + Explore diff --git a/src/pages/TrueSightV2/pages/SingleToken.tsx b/src/pages/TrueSightV2/pages/SingleToken.tsx index fb7c97b525..771821f3d0 100644 --- a/src/pages/TrueSightV2/pages/SingleToken.tsx +++ b/src/pages/TrueSightV2/pages/SingleToken.tsx @@ -511,7 +511,7 @@ export default function SingleToken() { const [showShare, setShowShare] = useState(false) const above768 = useMedia(`(min-width:${MEDIA_WIDTHS.upToSmall}px)`) const { chain, address } = useParams() - const [currentTab, setCurrentTab] = useState(DiscoverTokenTab.OnChainAnalysis) + const [currentTab, setCurrentTab] = useState(DiscoverTokenTab.TechnicalAnalysis) const { data: token, isLoading } = useKyberAITokenOverview() @@ -596,8 +596,8 @@ export default function SingleToken() { - {currentTab === DiscoverTokenTab.OnChainAnalysis && } {currentTab === DiscoverTokenTab.TechnicalAnalysis && } + {currentTab === DiscoverTokenTab.OnChainAnalysis && } ReactNode title: string }[] = [ - { type: KyberAIListType.ALL, title: t`All` }, { type: KyberAIListType.MYWATCHLIST, icon: 'star', title: t`My Watchlist` }, + { type: KyberAIListType.ALL, title: t`All` }, { type: KyberAIListType.BULLISH, title: t`Bullish`, diff --git a/src/pages/TrueSightV2/types/index.tsx b/src/pages/TrueSightV2/types/index.tsx index 613101d388..9b1eccc707 100644 --- a/src/pages/TrueSightV2/types/index.tsx +++ b/src/pages/TrueSightV2/types/index.tsx @@ -164,9 +164,8 @@ export interface ISRLevel { } export enum DiscoverTokenTab { - OnChainAnalysis = 'On-Chain Analysis', TechnicalAnalysis = 'Technical Analysis', - // News = 'News', + OnChainAnalysis = 'On-Chain Analysis', } export enum ChartTab { @@ -179,6 +178,7 @@ export enum KyberAITimeframe { ONE_HOUR = '1h', FOUR_HOURS = '4h', ONE_DAY = '1d', + THREE_DAY = '3d', FOUR_DAY = '4d', ONE_WEEK = '7d', ONE_MONTH = '1m',