From 15225564bbf56599dd44eaea45998059e7c54b13 Mon Sep 17 00:00:00 2001 From: Ivan Chen Date: Tue, 22 Dec 2020 11:56:52 -0500 Subject: [TMA-447] Natural Transitions (#145) * edit profile text now is back to black * changed default style to card and added custom modal transitions * resolved linter error --- src/components/common/GenericMoreInfoDrawer.tsx | 8 +++++--- src/components/profile/MomentMoreInfoDrawer.tsx | 2 ++ src/components/profile/ProfileMoreInfoDrawer.tsx | 1 + 3 files changed, 8 insertions(+), 3 deletions(-) (limited to 'src/components') diff --git a/src/components/common/GenericMoreInfoDrawer.tsx b/src/components/common/GenericMoreInfoDrawer.tsx index 3607ef8f..098482ae 100644 --- a/src/components/common/GenericMoreInfoDrawer.tsx +++ b/src/components/common/GenericMoreInfoDrawer.tsx @@ -20,12 +20,13 @@ interface GenericMoreInfoDrawerProps extends ViewProps { isOpen: boolean; setIsOpen: (visible: boolean) => void; showIcons: boolean; + textColor: string; // An array of title, onPressHandler, and icon component buttons: [string, OnPressHandler, JSX.Element?][]; } const GenericMoreInfoDrawer: React.FC = (props) => { - const {buttons, showIcons} = props; + const {buttons, showIcons, textColor} = props; // each button is 80px high, cancel button is always there const initialSnapPosition = (buttons.length + 1) * 80 + useSafeAreaInsets().bottom; @@ -47,7 +48,9 @@ const GenericMoreInfoDrawer: React.FC = (props) => { {showIcons && {icon}} - {title} + + {title} + @@ -74,7 +77,6 @@ const styles = StyleSheet.create({ panelButtonTitle: { fontSize: 18, fontWeight: 'bold', - color: 'red', }, icon: { height: 25, diff --git a/src/components/profile/MomentMoreInfoDrawer.tsx b/src/components/profile/MomentMoreInfoDrawer.tsx index 91fb3d2b..e127e05c 100644 --- a/src/components/profile/MomentMoreInfoDrawer.tsx +++ b/src/components/profile/MomentMoreInfoDrawer.tsx @@ -77,12 +77,14 @@ const MomentMoreInfoDrawer: React.FC = (props) => { ) : ( )} diff --git a/src/components/profile/ProfileMoreInfoDrawer.tsx b/src/components/profile/ProfileMoreInfoDrawer.tsx index 4fe24128..80ad9bba 100644 --- a/src/components/profile/ProfileMoreInfoDrawer.tsx +++ b/src/components/profile/ProfileMoreInfoDrawer.tsx @@ -41,6 +41,7 @@ const ProfileMoreInfoDrawer: React.FC = (props) => { ], ]} -- cgit v1.2.3-70-g09d2