From 70ff4dc0c8d8fa7b05087c6dbc08f2def895b922 Mon Sep 17 00:00:00 2001 From: Shravya Ramesh Date: Fri, 23 Apr 2021 14:16:52 -0700 Subject: Added interface --- src/components/profile/BadgeTutorialScreen.tsx | 13 ++++++++----- src/components/profile/ProfileHeader.tsx | 8 +++++--- src/components/profile/UniversityIcon.tsx | 1 + 3 files changed, 14 insertions(+), 8 deletions(-) (limited to 'src/components') diff --git a/src/components/profile/BadgeTutorialScreen.tsx b/src/components/profile/BadgeTutorialScreen.tsx index e2dab00d..45831fc6 100644 --- a/src/components/profile/BadgeTutorialScreen.tsx +++ b/src/components/profile/BadgeTutorialScreen.tsx @@ -12,14 +12,17 @@ import {normalize} from '../../utils'; import {UniversityIcon} from './'; import {UniversityIconProps} from './UniversityIcon'; -const BadgeTutorialScreen: React.FC = ({ - layout, - university, - university_class, +interface BadgeTutorialScreenProps { + uniIconProps: UniversityIconProps; + setShowBadgeTutorial: Function; +} + +const BadgeTutorialScreen: React.FC = ({ + uniIconProps, setShowBadgeTutorial, }) => { const [showModal, setShowModal] = useState(true); - + const {layout, university, university_class} = uniIconProps; return ( = ({ /> {measure && ( )} diff --git a/src/components/profile/UniversityIcon.tsx b/src/components/profile/UniversityIcon.tsx index 6e1c7d4e..560a771e 100644 --- a/src/components/profile/UniversityIcon.tsx +++ b/src/components/profile/UniversityIcon.tsx @@ -9,6 +9,7 @@ export interface UniversityIconProps extends ViewProps { university_class?: number; imageStyle?: StyleProp; needsShadow?: boolean; + layout?: object | null; } /** -- cgit v1.2.3-70-g09d2