From 5cf07e26a870bc9e4aa428cbe9f0b328b79b43e3 Mon Sep 17 00:00:00 2001 From: Anmol Verma Date: Fri, 13 Sep 2024 00:17:47 +0530 Subject: [PATCH] give maxwidth to list --- packages/app/components/chat/index.tsx | 9 ++++++++- packages/app/modules/pack/screens/PackDetailsScreen.tsx | 8 ++++---- packages/ui/src/modal/BaseModal.tsx | 4 ++-- 3 files changed, 14 insertions(+), 7 deletions(-) diff --git a/packages/app/components/chat/index.tsx b/packages/app/components/chat/index.tsx index cccdf031e..5ce70ca4d 100644 --- a/packages/app/components/chat/index.tsx +++ b/packages/app/components/chat/index.tsx @@ -195,9 +195,16 @@ const SuggestionComponent = ({ itemTypeId = null, type = null }) => { Allow me to analyze your pack and help! ) : ( - + diff --git a/packages/app/modules/pack/screens/PackDetailsScreen.tsx b/packages/app/modules/pack/screens/PackDetailsScreen.tsx index e0e5def68..45088fbfa 100644 --- a/packages/app/modules/pack/screens/PackDetailsScreen.tsx +++ b/packages/app/modules/pack/screens/PackDetailsScreen.tsx @@ -13,13 +13,13 @@ import { import useResponsive from 'app/hooks/useResponsive'; import { FlatList, View } from 'react-native'; import ScoreContainer from '../../../components/ScoreContainer'; -// import ChatContainer from '../chat'; import { TextLink } from '@packrat/crosspath'; import { DetailsComponent } from '../../../components/details'; import { ImportItemModal, AddItemModal } from 'app/modules/item'; import { FeedPreview } from 'app/modules/feed'; import LargeCard from 'app/components/card/LargeCard'; import useTheme from 'app/hooks/useTheme'; +import ChatModalTrigger from 'app/components/chat'; const SECTION = { TABLE: 'TABLE', @@ -193,7 +193,7 @@ export function PackDetailsScreen() { )} {/* Disable Chat */} - {/* - - */} + ); } diff --git a/packages/ui/src/modal/BaseModal.tsx b/packages/ui/src/modal/BaseModal.tsx index 0284450a9..c68aa9206 100644 --- a/packages/ui/src/modal/BaseModal.tsx +++ b/packages/ui/src/modal/BaseModal.tsx @@ -159,7 +159,7 @@ export const BaseModal = ({ - + {/* - + */} ); };