From 0e20995e26dae1322c8648b8e2d1a6c2c13f8097 Mon Sep 17 00:00:00 2001 From: Monalisha Mishra Date: Fri, 20 Sep 2024 14:17:52 +0530 Subject: [PATCH] channel details page --- src/modules/channelDetails/ChannelDetails.tsx | 4 +- .../components/ChannelDetail.tsx | 5 +- .../channelDetails/components/ChannelList.tsx | 1 + .../components/ChannelTutorialContent.tsx | 6 ++- .../components/UserJourneyPreview.tsx | 4 +- .../hooks/channels/useGetChannelsList.ts | 3 +- .../channels/getChannelsListModelCreator.ts | 8 ++- .../services/channels/getChannelsList.ts | 2 +- src/structure/MasterInterfacePage.tsx | 49 +------------------ 9 files changed, 20 insertions(+), 62 deletions(-) diff --git a/src/modules/channelDetails/ChannelDetails.tsx b/src/modules/channelDetails/ChannelDetails.tsx index 5f79255d17..aff55ac521 100644 --- a/src/modules/channelDetails/ChannelDetails.tsx +++ b/src/modules/channelDetails/ChannelDetails.tsx @@ -24,19 +24,19 @@ const ChannelDetails: FC = () => { const hasMoreData = !isFetchingNextPage && hasNextPage; const selectedChannel = channelsList?.find((channel) => channel?.channel === selectedChannelId); - console.debug(selectedChannel, channelsList, 'channel'); useEffect(() => { if (!isAddress(id || '')) navigate(APP_PATHS.Channels); }, [id]); //channel tutotrial - //delete old channel page + //delete old channel and related pages return ( = ({ channel, isLoading }) => { display="flex" flexDirection="column" width="100%" + height="100vh" gap="spacing-xl" padding="spacing-none spacing-xxs" > diff --git a/src/modules/channelDetails/components/ChannelList.tsx b/src/modules/channelDetails/components/ChannelList.tsx index dc368604be..6895b3031f 100644 --- a/src/modules/channelDetails/components/ChannelList.tsx +++ b/src/modules/channelDetails/components/ChannelList.tsx @@ -33,6 +33,7 @@ const ChannelList: FC = ({ overflow="auto" customScrollbar={true} height="100%" + maxHeight="100%" padding="spacing-none spacing-sm spacing-none spacing-none" flexDirection="column" > diff --git a/src/modules/channelDetails/components/ChannelTutorialContent.tsx b/src/modules/channelDetails/components/ChannelTutorialContent.tsx index 08ce246fc2..1459d3c504 100644 --- a/src/modules/channelDetails/components/ChannelTutorialContent.tsx +++ b/src/modules/channelDetails/components/ChannelTutorialContent.tsx @@ -1,9 +1,10 @@ -import { FC, useState } from 'react'; +import { FC } from 'react'; import { Box, Button, Dropdown, ExternalLink, Link, Text, Tutorial } from 'blocks'; +import { UserJourney } from './UserJourneyPreview'; import { useBlocksTheme } from 'blocks/Blocks.hooks'; -import { UserJourney } from './UserJourneyPreview'; + import { useDisclosure } from 'common'; export type ChannelTutorialContentProps = { tutotrialDetails: any }; @@ -39,6 +40,7 @@ const ChannelTutorialContent: FC = ({ tutotrialDeta = ({ videoLink, modalControl }) => { size="large" isOpen={isOpen} onClose={onClose} + acceptButtonProps={null} + cancelButtonProps={null} > - - - - - - )} ); }