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 H20
Team Ad Hoc
4-t-h
Commits
faf163c5
Commit
faf163c5
authored
Nov 10, 2020
by
Thor-Herman
Browse files
Remove unnecessary interface
#2
parent
dda20fef
Changes
2
Hide whitespace changes
Inline
Side-by-side
prosjekt-4/components/App.tsx
View file @
faf163c5
import
{
Route
,
Switch
}
from
'
react-router
'
;
import
{
Route
,
Switch
}
from
'
react-router
-native
'
;
import
BrowsePage
from
'
../pages/BrowsePage
'
;
import
LandingPage
from
'
../pages/LandingPage
'
;
import
MoviePage
from
'
../pages/MoviePage
'
;
import
React
from
'
react
'
;
import
{
View
}
from
'
react-native
'
;
const
App
=
()
=>
{
return
(
<
Switch
>
<
Route
exact
path
=
'/'
component
=
{
LandingPage
}
/>
<
Route
path
=
'/browse'
component
=
{
BrowsePage
}
/>
<
Route
path
=
'/movie/:movieId'
component
=
{
MoviePage
}
/>
</
Switch
>
<
View
>
<
Switch
>
<
Route
exact
path
=
'/'
component
=
{
LandingPage
}
/>
<
Route
path
=
'/browse'
component
=
{
BrowsePage
}
/>
<
Route
path
=
'/movie/:movieId'
component
=
{
MoviePage
}
/>
</
Switch
>
</
View
>
);
};
...
...
prosjekt-4/store/index.ts
View file @
faf163c5
...
...
@@ -3,12 +3,6 @@ import reducers from '../reducers';
import
thunk
from
'
redux-thunk
'
;
import
{
composeWithDevTools
}
from
'
redux-devtools-extension
'
;
declare
global
{
interface
Window
{
__REDUX_DEVTOOLS_EXTENSION_COMPOSE__
?:
typeof
compose
;
}
}
const
configureStore
=
()
=>
{
return
createStore
(
reducers
,
composeWithDevTools
(
applyMiddleware
(
thunk
)));
};
...
...
Thor-Herman Van Eggelen
@theggele
mentioned in commit
797979f5
·
Nov 10, 2020
mentioned in commit
797979f5
mentioned in commit 797979f5d2541ca0e52619538dab1ae2d69275da
Toggle commit list
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