From 92e0bc7198ae35741aed8b9b5455d8ff5a67800c Mon Sep 17 00:00:00 2001
From: Gildas <1122076+djhi@users.noreply.github.com>
Date: Thu, 9 Jan 2025 15:36:44 +0100
Subject: [PATCH] Fix remaining color props in demo
---
examples/demo/src/layout/SubMenu.tsx | 5 ++++-
examples/demo/src/visitors/Aside.tsx | 28 +++++++++++++++++++++++-----
2 files changed, 27 insertions(+), 6 deletions(-)
diff --git a/examples/demo/src/layout/SubMenu.tsx b/examples/demo/src/layout/SubMenu.tsx
index 86442c66dbc..72dd73a69d5 100644
--- a/examples/demo/src/layout/SubMenu.tsx
+++ b/examples/demo/src/layout/SubMenu.tsx
@@ -31,7 +31,10 @@ const SubMenu = (props: Props) => {
{isOpen ? : icon}
-
+ theme.palette.text.secondary }}
+ >
{translate(name)}
diff --git a/examples/demo/src/visitors/Aside.tsx b/examples/demo/src/visitors/Aside.tsx
index 161549772d1..30290c934fa 100644
--- a/examples/demo/src/visitors/Aside.tsx
+++ b/examples/demo/src/visitors/Aside.tsx
@@ -258,7 +258,11 @@ const Order = () => {
if (!record) return null;
return (
<>
-
+ theme.palette.text.secondary }}
+ gutterBottom
+ >
{new Date(record.date).toLocaleString(locale, {
year: 'numeric',
month: 'short',
@@ -267,11 +271,18 @@ const Order = () => {
minute: 'numeric',
})}
-
+ theme.palette.text.secondary }}
+ gutterBottom
+ >
Reference #{record.reference} -
-
+ theme.palette.text.secondary }}
+ >
{
if (!record) return null;
return (
<>
-
+ theme.palette.text.secondary }}
+ gutterBottom
+ >
{new Date(record.date).toLocaleString(locale, {
year: 'numeric',
month: 'short',
@@ -326,7 +341,10 @@ const Review = () => {
>
{record.comment}
-
+ theme.palette.text.secondary }}
+ >
>