Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
IT2810 H21
Team 29
iWhatToWatch
Commits
2fb3d1cd
Commit
2fb3d1cd
authored
Nov 22, 2021
by
Dherik Jenitan Devakumar
Browse files
(
#15
) Added type checking in movietable
parent
93e645df
Changes
2
Hide whitespace changes
Inline
Side-by-side
frontend/src/components/moviesview/index.tsx
View file @
2fb3d1cd
...
...
@@ -29,7 +29,7 @@ const MovieTable: React.FC<MovieTableProps> = ({fetchMore}) => {
const
isLoggedIn
=
useSelector
(
selectUserIsLoggedIn
);
const
userName
=
useSelector
(
selectUserName
)
const
[
modalVisible
,
setModalVisible
]
=
useState
(
false
);
const
[
modalMovie
,
setModalMovie
]
=
useState
(
null
);
const
[
modalMovie
,
setModalMovie
]
=
useState
<
searchMovies_getMoviesBySearch
>
(
);
const
[
fontsLoaded
]
=
useFonts
({
'
Quicksand-Regular
'
:
require
(
'
../../assets/fonts/Quicksand-Regular.ttf
'
)
...
...
@@ -88,7 +88,7 @@ const MovieTable: React.FC<MovieTableProps> = ({fetchMore}) => {
}
}
onEndReached
=
{
fetchMore
}
/>
<
MovieModal
isModalVisible
=
{
modalVisible
}
setIsModalVisible
=
{
setModalVisible
}
movie
=
{
modalMovie
}
/>
{
modalMovie
?
<
MovieModal
isModalVisible
=
{
modalVisible
}
setIsModalVisible
=
{
setModalVisible
}
movie
=
{
modalMovie
}
/>
:
null
}
</
SafeAreaView
>
)
}
...
...
frontend/src/pages/MainPage.tsx
View file @
2fb3d1cd
...
...
@@ -124,8 +124,4 @@ export const MainPage: FunctionComponent = () => {
);
};
const
inlineStyles
=
StyleSheet
.
create
({
containerStyle
:
{
}
})
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment