Fakultas Ilmu Komputer UI
Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ppl-fasilkom-ui
PPL KI Ganjil 2021 2022
Clicks - Ecosystem Business
clicks-frontend
Commits
62e3bffa
Commit
62e3bffa
authored
Oct 09, 2021
by
Bagus Prabowo
Browse files
Merge branch 'eslint-fix' into 'master'
Refactor: Eslint Configuration Fix See merge request
!72
parents
4eee1812
d627b3ce
Pipeline
#86121
passed with stage
in 9 minutes and 20 seconds
Changes
31
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/screens/ecosystem/EcosystemDetailScreen.tsx
View file @
62e3bffa
import
{
useNavigation
}
from
"
@react-navigation/core
"
;
import
*
as
React
from
"
react
"
;
import
{
StyleSheet
,
Image
}
from
"
react-native
"
;
import
{
Text
,
View
}
from
"
../../components/Themed
"
;
...
...
@@ -9,7 +8,6 @@ import { MaterialIcons } from "@expo/vector-icons";
import
Layout
from
"
../../constants/Layout
"
;
const
EcosystemDetailScreen
=
()
=>
{
const
nav
=
useNavigation
();
return
(
<
View
style
=
{
styles
.
container
}
>
<
View
style
=
{
styles
.
imageWrapper
}
>
...
...
src/screens/ecosystem/EcosystemListScreen.tsx
View file @
62e3bffa
import
{
useNavigation
}
from
"
@react-navigation/core
"
;
import
*
as
React
from
"
react
"
;
import
{
StyleSheet
}
from
"
react-native
"
;
import
{
Text
,
View
}
from
"
../../components/Themed
"
;
import
Colors
from
"
../../constants/Colors
"
;
const
EcosystemListScreen
=
()
=>
{
const
nav
=
useNavigation
();
return
(
<
View
style
=
{
styles
.
container
}
>
<
View
>
...
...
src/screens/ecosystem/EcosystemMapScreen.tsx
View file @
62e3bffa
import
{
useNavigation
}
from
"
@react-navigation/core
"
;
import
*
as
React
from
"
react
"
;
import
{
StyleSheet
}
from
"
react-native
"
;
import
{
View
}
from
"
../../components/Themed
"
;
...
...
@@ -7,7 +6,6 @@ import PlainButton from "../../components/button/PlainButton";
import
Spacer
from
"
../../components/Spacer/Spacer
"
;
const
EcosystemMapScreen
=
()
=>
{
const
nav
=
useNavigation
();
return
(
<
View
style
=
{
styles
.
container
}
>
<
View
style
=
{
styles
.
bodyWrapper
}
>
...
...
src/screens/ecosystem/recomendation/JoinedEcosystemScreen.tsx
View file @
62e3bffa
import
{
useNavigation
}
from
"
@react-navigation/core
"
;
import
*
as
React
from
"
react
"
;
import
{
StyleSheet
}
from
"
react-native
"
;
import
{
Text
,
View
}
from
"
../../../components/Themed
"
;
import
Colors
from
"
../../../constants/Colors
"
;
const
JoinedEcosystemScreen
=
()
=>
{
const
nav
=
useNavigation
();
return
(
<
View
style
=
{
styles
.
container
}
>
<
View
>
...
...
src/screens/ecosystem/recomendation/LatestEcosystemScreen.tsx
View file @
62e3bffa
import
{
useNavigation
}
from
"
@react-navigation/core
"
;
import
*
as
React
from
"
react
"
;
import
{
StyleSheet
}
from
"
react-native
"
;
import
{
Text
,
View
}
from
"
../../../components/Themed
"
;
import
Colors
from
"
../../../constants/Colors
"
;
const
LatestEcosystemScreen
=
()
=>
{
const
nav
=
useNavigation
();
return
(
<
View
style
=
{
styles
.
container
}
>
<
View
>
...
...
src/screens/ecosystem/recomendation/MyEcosystemScreen.tsx
View file @
62e3bffa
import
{
useNavigation
}
from
"
@react-navigation/core
"
;
import
*
as
React
from
"
react
"
;
import
{
StyleSheet
}
from
"
react-native
"
;
import
{
Text
,
View
}
from
"
../../../components/Themed
"
;
import
Colors
from
"
../../../constants/Colors
"
;
const
MyEcosystemScreen
=
()
=>
{
const
nav
=
useNavigation
();
return
(
<
View
style
=
{
styles
.
container
}
>
<
View
>
...
...
src/screens/ecosystem/recomendation/PopularEcosystemScreen.tsx
View file @
62e3bffa
import
{
useNavigation
}
from
"
@react-navigation/core
"
;
import
*
as
React
from
"
react
"
;
import
{
StyleSheet
}
from
"
react-native
"
;
import
{
Text
,
View
}
from
"
../../../components/Themed
"
;
import
Colors
from
"
../../../constants/Colors
"
;
const
PopularEcosystemScreen
=
()
=>
{
const
nav
=
useNavigation
();
return
(
<
View
style
=
{
styles
.
container
}
>
<
View
>
...
...
src/screens/profile/AccountSettingsScreen.tsx
View file @
62e3bffa
...
...
@@ -15,6 +15,7 @@ import { IUser } from "../../types/firestore/User";
import
{
useAppDispatch
,
useAppSelector
}
from
"
../../hooks/reduxHooks
"
;
export
default
function
AccountSettingsScreen
({
// eslint-disable-next-line @typescript-eslint/no-unused-vars
navigation
,
}:
RootTabScreenProps
<
"
Profile
"
>
)
{
const
user
:
IUser
=
useAppSelector
((
state
)
=>
state
.
user
);
...
...
@@ -122,8 +123,9 @@ export default function AccountSettingsScreen({
<
Spacer
variant
=
"xl"
/>
<
View
style
=
{
styles
.
componentWrapper
}
>
<
Button
//TODO: Redirect yang bener
onPress
=
{
()
=>
nav
.
navigate
(
"
ChangePassword
"
)
}
onPress
=
{
()
=>
nav
.
navigate
(
"
Profile
"
,
{
screen
:
"
AccountSettings
"
})
}
title
=
"Change Password"
/>
</
View
>
...
...
src/screens/profile/ChangePasswordScreen.tsx
View file @
62e3bffa
...
...
@@ -12,6 +12,7 @@ import { changePassword } from "../../redux/user/actions";
import
{
ActionErrorRes
}
from
"
../../types/redux
"
;
const
ChangePasswordScreen
=
({
// eslint-disable-next-line @typescript-eslint/no-unused-vars
navigation
,
}:
RootTabScreenProps
<
"
Profile
"
>
)
=>
{
const
nav
=
useNavigation
();
...
...
src/screens/profile/ProfileScreen.tsx
View file @
62e3bffa
import
{
useNavigation
}
from
"
@react-navigation/core
"
;
import
*
as
React
from
"
react
"
;
import
{
useState
}
from
"
react
"
;
import
{
StyleSheet
,
Image
,
TouchableOpacity
}
from
"
react-native
"
;
import
{
Text
,
View
}
from
"
../../components/Themed
"
;
...
...
@@ -15,6 +14,7 @@ import { logoutUser } from "../../redux/user/actions";
import
{
IUser
}
from
"
../../types/firestore/User
"
;
export
default
function
ProfileScreen
({
// eslint-disable-next-line @typescript-eslint/no-unused-vars
navigation
,
}:
RootTabScreenProps
<
"
Profile
"
>
)
{
const
nav
=
useNavigation
();
...
...
@@ -50,7 +50,9 @@ export default function ProfileScreen({
</
Title
>
<
Spacer
variant
=
{
"
xl
"
}
/>
<
SmallButton
onPress
=
{
()
=>
nav
.
navigate
(
"
AccountSettings
"
)
}
onPress
=
{
()
=>
nav
.
navigate
(
"
Profile
"
,
{
screen
:
"
AccountSettings
"
})
}
text
=
"Pengaturan Akun"
colors
=
"primary"
/>
...
...
src/types/navigation/RootTab.ts
View file @
62e3bffa
import
{
BottomTabScreenProps
}
from
"
@react-navigation/bottom-tabs
"
;
import
{
CompositeScreenProps
,
NavigatorScreenParams
,
}
from
"
@react-navigation/native
"
;
import
{
CompositeScreenProps
}
from
"
@react-navigation/native
"
;
import
{
NativeStackScreenProps
}
from
"
@react-navigation/native-stack
"
;
import
{
RootStackParamList
}
from
"
.
"
;
...
...
Prev
1
2
Next
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