From dfbd57b1724aa987711a5c6c1098073afec15433 Mon Sep 17 00:00:00 2001 From: Edward Wang Date: Tue, 6 Aug 2024 11:53:58 -0500 Subject: [PATCH 1/2] fixed buttons, but not aligned --- app/(tabs)/my-pantry/index.tsx | 28 +++++++++------- components/whats-new-modal.tsx | 60 ++++++++++++++++++++++++++++++++++ 2 files changed, 76 insertions(+), 12 deletions(-) create mode 100644 components/whats-new-modal.tsx diff --git a/app/(tabs)/my-pantry/index.tsx b/app/(tabs)/my-pantry/index.tsx index f0f42f8..1e008d1 100644 --- a/app/(tabs)/my-pantry/index.tsx +++ b/app/(tabs)/my-pantry/index.tsx @@ -292,18 +292,22 @@ export default function MyPantry() { {item} - editItem(sections.indexOf(section), index)} - > - - - handleDeleteIngredient(section, index, item)} - > - - + + editItem(sections.indexOf(section), index)} + > + + + + + handleDeleteIngredient(section, index, item)} + > + + + void; +}; + +export const WhatsNewModal = (props: WhatsNewModalProps) => { + const styles = getOnboardingStyles(useTheme()); + return ( + + + + What's New in v{props.version}: + {props.changes} +