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
2021
Kelas D
PT Gizi Sehat - Dietela
Dietela Mobile
Commits
af51ac6f
Commit
af51ac6f
authored
May 18, 2021
by
Kefas Satrio Bangkit Solidedantyo
Browse files
Fix client list buttons bug
parent
212ca2c9
Changes
3
Show whitespace changes
Inline
Side-by-side
src/scenes/nutritionist/ClientListNutritionist/components/ChatButton/styles.ts
View file @
af51ac6f
...
...
@@ -5,6 +5,7 @@ export const styles = StyleSheet.create({
titleStyle
:
{
color
:
colors
.
textBlack
,
textTransform
:
'
capitalize
'
},
containerStyle
:
{
marginTop
:
12
,
marginLeft
:
5
,
padding
:
12
,
overflow
:
'
hidden
'
,
borderRadius
:
4
,
...
...
@@ -13,7 +14,7 @@ export const styles = StyleSheet.create({
flexDirection
:
'
row
'
,
justifyContent
:
'
center
'
,
alignItems
:
'
center
'
,
width
:
1
60
,
flexGrow
:
1
,
},
img
:
{
marginRight
:
5
,
...
...
src/scenes/nutritionist/ClientListNutritionist/components/DietProfileButton/styles.ts
View file @
af51ac6f
...
...
@@ -5,6 +5,7 @@ export const styles = StyleSheet.create({
titleStyle
:
{
color
:
colors
.
textBlack
,
textTransform
:
'
capitalize
'
},
containerStyle
:
{
marginTop
:
12
,
marginRight
:
5
,
padding
:
12
,
overflow
:
'
hidden
'
,
borderRadius
:
4
,
...
...
@@ -13,7 +14,7 @@ export const styles = StyleSheet.create({
flexDirection
:
'
row
'
,
justifyContent
:
'
center
'
,
alignItems
:
'
center
'
,
width
:
1
60
,
flexGrow
:
1
,
},
img
:
{
marginRight
:
5
,
...
...
src/scenes/nutritionist/ClientListNutritionist/index.tsx
View file @
af51ac6f
...
...
@@ -6,7 +6,7 @@ import { useNavigation } from '@react-navigation/native';
import
*
as
ROUTES
from
'
constants/routes
'
;
import
{
retrieveClientListApi
}
from
'
services/profiles
'
;
import
{
useApi
}
from
'
hooks
'
;
import
{
Loader
}
from
'
components/core
'
;
import
{
Loader
,
EmptyDataPage
}
from
'
components/core
'
;
const
ClientListNutritionist
:
FC
=
()
=>
{
const
navigation
=
useNavigation
();
...
...
@@ -15,6 +15,9 @@ const ClientListNutritionist: FC = () => {
if
(
isLoading
)
{
return
<
Loader
/>;
}
if
(
!
clients
.
length
)
{
return
<
EmptyDataPage
text
=
"Belum ada klien"
/>;
}
return
(
<
ScrollView
contentContainerStyle
=
{
layoutStyles
}
>
{
clients
.
map
((
client
,
idx
)
=>
(
...
...
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