Skip to content
Snippets Groups Projects
Commit 74b64aa2 authored by Aymane Amessegher's avatar Aymane Amessegher :headphones:
Browse files

integration du petit calendrier avec David code

parent 6ed091f4
No related branches found
No related tags found
No related merge requests found
......@@ -73,7 +73,7 @@ impl MainApp {
// Boutons de navigation des mois
ui.horizontal(|ui| {
if ui.button("◀ Précédent").clicked() {
if ui.button("◀ Précédent ").clicked() {
let new_date = if month == 1 {
NaiveDate::from_ymd_opt(year - 1, 12, 1).unwrap()
} else {
......@@ -84,7 +84,7 @@ impl MainApp {
ui.heading(format!("{} {}", month, year));
if ui.button("Suivant ▶").clicked() {
if ui.button(" Suivant ▶").clicked() {
let new_date = if month == 12 {
NaiveDate::from_ymd_opt(year + 1, 1, 1).unwrap()
} else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment