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
d21f9c3d
Commit
d21f9c3d
authored
Jun 29, 2021
by
Wulan Mantiri
Browse files
Fix returning users and navigation logic
parent
3b8d062e
Changes
22
Show whitespace changes
Inline
Side-by-side
src/scenes/questionnaire/ReadOnlyDietRecommendation/index.tsx
View file @
d21f9c3d
...
@@ -15,11 +15,7 @@ import { Props } from './types';
...
@@ -15,11 +15,7 @@ import { Props } from './types';
const
ReadOnlyDietRecommendation
:
FC
<
Props
>
=
({
children
,
data
})
=>
{
const
ReadOnlyDietRecommendation
:
FC
<
Props
>
=
({
children
,
data
})
=>
{
const
url
=
API_BASE_URL
+
data
?.
client_plan_meal
;
const
url
=
API_BASE_URL
+
data
?.
client_plan_meal
;
const
{
download
,
fileName
}
=
useDownloadFiles
(
const
{
download
,
fileName
}
=
useDownloadFiles
(
url
,
''
,
FileType
.
PDF
);
url
,
'
rencana makan
'
,
FileType
.
PDF
,
);
const
hasValues
=
(
obj
:
DietRecommendationResponse
)
=>
const
hasValues
=
(
obj
:
DietRecommendationResponse
)
=>
[
obj
.
client_plan_meal
,
obj
.
nutritional_advice
,
obj
.
lifestyle_advice
].
reduce
(
[
obj
.
client_plan_meal
,
obj
.
nutritional_advice
,
obj
.
lifestyle_advice
].
reduce
(
...
...
src/services/auth/models.ts
View file @
d21f9c3d
...
@@ -31,6 +31,7 @@ export interface AuthUserResponse extends User {
...
@@ -31,6 +31,7 @@ export interface AuthUserResponse extends User {
transaction_status
:
TransactionStatus
|
null
;
transaction_status
:
TransactionStatus
|
null
;
is_finished_onboarding
:
boolean
;
is_finished_onboarding
:
boolean
;
cart_id
:
number
|
null
;
cart_id
:
number
|
null
;
all_carts_are_expired
:
boolean
;
nutritionist
:
{
nutritionist
:
{
full_name_and_degree
:
string
;
full_name_and_degree
:
string
;
phone_number
:
string
|
null
;
phone_number
:
string
|
null
;
...
...
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