Skip to content
GitLab
Explorer
Connexion
Navigation principale
Rechercher ou aller à…
Projet
M
mydressin-front
Gestion
Activité
Membres
Labels
Programmation
Tickets
0
Tableaux des tickets
Jalons
Wiki
Jira
Code
Requêtes de fusion
0
Dépôt
Branches
Validations
Étiquettes
Graphe du dépôt
Comparer les révisions
Extraits de code
Compilation
Pipelines
Jobs
Planifications de pipeline
Artéfacts
Déploiement
Releases
Registre de paquets
Opération
Environnements
Modules Terraform
Surveillance
Incidents
Service d'assistance
Analyse
Données d'analyse des chaînes de valeur
Contributor analytics
Données d'analyse CI/CD
Données d'analyse du dépôt
Expériences du modèle
Aide
Aide
Support
Documentation de GitLab
Comparer les forfaits GitLab
Forum de la communauté
Contribuer à GitLab
Donner votre avis
Raccourcis clavier
?
Extraits de code
Groupes
Projets
mydressin
mydressin-front
Validations
11effbde
Valider
11effbde
rédigé
il y a un an
par
oussama aftys
Parcourir les fichiers
Options
Téléchargements
Correctifs
Plain Diff
modified hour choice interface
parent
ca0a15e8
Branches
Branches contenant la validation
1 requête de fusion
!143
Update 2 files
Modifications
1
Masquer les modifications d'espaces
En ligne
Côte à côte
Affichage de
1 fichier modifié
src/shared/sections/lives/add-edit-live/add-live-view.tsx
+8
-2
8 ajouts, 2 suppressions
src/shared/sections/lives/add-edit-live/add-live-view.tsx
avec
8 ajouts
et
2 suppressions
src/shared/sections/lives/add-edit-live/add-live-view.tsx
+
8
−
2
Voir le fichier @
11effbde
...
...
@@ -11,6 +11,7 @@ import Stack from '@mui/material/Stack';
import
CardHeader
from
'
@mui/material/CardHeader
'
;
import
Typography
from
'
@mui/material/Typography
'
;
import
{
TimePicker
}
from
'
@mui/x-date-pickers/TimePicker
'
;
import
{
renderTimeViewClock
}
from
'
@mui/x-date-pickers/timeViewRenderers
'
;
import
{
DatePicker
}
from
'
@mui/x-date-pickers/DatePicker
'
;
import
LoadingButton
from
'
@mui/lab/LoadingButton
'
;
import
{
Container
}
from
'
@mui/material
'
;
...
...
@@ -26,7 +27,7 @@ import AddProduct from './add-products';
import
CustomBreadcrumbs
from
'
@/components/custom-breadcrumbs
'
;
import
{
paths
}
from
'
@/routes/paths
'
;
import
{
useSettingsContext
}
from
'
@/shared/components/settings
'
;
import
{
ILiveProduct
}
from
'
@/shared/types/live
'
;
import
{
ILiveProduct
}
from
'
@/shared/types/live
'
;
import
{
addLive
}
from
'
@/shared/api/live
'
;
export
default
function
AddLiveView
()
{
...
...
@@ -88,7 +89,7 @@ export default function AddLiveView() {
};
const
onSubmit
=
handleSubmit
((
data
)
=>
{
const
formData
=
{
...
data
,
image
:
image
as
File
,
products
:
products
.
map
((
product
)
=>
product
.
id
)}
const
formData
=
{
...
data
,
image
:
image
as
File
,
products
:
products
.
map
((
product
)
=>
product
.
id
)
}
addLive
(
formData
)
.
then
(()
=>
{
enqueueSnackbar
(
'
Live created successfully
'
,
{
variant
:
'
success
'
});
...
...
@@ -148,6 +149,11 @@ export default function AddLiveView() {
<
TimePicker
label
=
"heure de debut"
value
=
{
field
.
value
}
viewRenderers
=
{
{
hours
:
renderTimeViewClock
,
minutes
:
renderTimeViewClock
,
seconds
:
renderTimeViewClock
,
}
}
onChange
=
{
(
newValue
)
=>
field
.
onChange
(
newValue
)
}
slotProps
=
{
{
textField
:
{
...
...
This diff is collapsed.
Click to expand it.
Aperçu
0%
Veuillez réessayer
ou
joindre un nouveau fichier
.
Annuler
You are about to add
0
people
to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Enregistrer le commentaire
Annuler
Veuillez vous
inscrire
ou vous
se connecter
pour commenter