Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
RPG
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
julien.debray
RPG
Commits
32b8dd6d
Commit
32b8dd6d
authored
2 years ago
by
david.truong
Browse files
Options
Downloads
Patches
Plain Diff
Enlever boutons annuler des cartes rendez-vous déjà passés
parent
232b640b
Branches
Branches containing commit
No related tags found
1 merge request
!15
Deleted rpg_app/assets/fonts/Inter-Bold.ttf,...
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
mobile_app/components/RDVCard.js
+4
-1
4 additions, 1 deletion
mobile_app/components/RDVCard.js
with
4 additions
and
1 deletion
mobile_app/components/RDVCard.js
+
4
−
1
View file @
32b8dd6d
...
@@ -64,6 +64,9 @@ const ConfirmDelete = (data, up) => {
...
@@ -64,6 +64,9 @@ const ConfirmDelete = (data, up) => {
const
RDVCard
=
({
data
,
up
})
=>
{
const
RDVCard
=
({
data
,
up
})
=>
{
const
navigation
=
useNavigation
();
const
navigation
=
useNavigation
();
const
today
=
new
Date
()
const
dateCard
=
new
Date
(
data
.
date
)
console
.
log
(
data
.
date
)
return
(
return
(
<
View
style
=
{{
backgroundColor
:
COLORS
.
white
,
borderRadius
:
SIZES
.
font
,
marginBottom
:
SIZES
.
extraLarge
,
margin
:
SIZES
.
base
,
...
SHADOWS
.
dark
}}
>
<
View
style
=
{{
backgroundColor
:
COLORS
.
white
,
borderRadius
:
SIZES
.
font
,
marginBottom
:
SIZES
.
extraLarge
,
margin
:
SIZES
.
base
,
...
SHADOWS
.
dark
}}
>
<
View
style
=
{{
width
:
"
100%
"
,
height
:
150
}}
>
<
View
style
=
{{
width
:
"
100%
"
,
height
:
150
}}
>
...
@@ -82,7 +85,7 @@ const RDVCard = ({ data, up }) => {
...
@@ -82,7 +85,7 @@ const RDVCard = ({ data, up }) => {
<
View
style
=
{{
flexDirection
:
"
row
"
}}
>
<
View
style
=
{{
flexDirection
:
"
row
"
}}
>
<
RectButton
minWidth
=
{
85
}
fontSize
=
{
SIZES
.
font
}
text
=
"
Détails
"
handlePress
=
{()
=>
navigation
.
navigate
(
"
Details
"
,
{
data
})}
/
>
<
RectButton
minWidth
=
{
85
}
fontSize
=
{
SIZES
.
font
}
text
=
"
Détails
"
handlePress
=
{()
=>
navigation
.
navigate
(
"
Details
"
,
{
data
})}
/
>
<
RectButton
minWidth
=
{
85
}
fontSize
=
{
SIZES
.
font
}
text
=
"
Annuler
"
handlePress
=
{()
=>
ConfirmDelete
(
data
,
up
)}
/
>
{(
today
<=
dateCard
)
&&
(
<
RectButton
minWidth
=
{
85
}
fontSize
=
{
SIZES
.
font
}
text
=
"
Annuler
"
handlePress
=
{()
=>
ConfirmDelete
(
data
,
up
)}
/>
)
}
<
/View
>
<
/View
>
<
/View
>
<
/View
>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment