From 1c27a87f9fd101bfdb19bdcdc1831b9c04470b3a Mon Sep 17 00:00:00 2001 From: maxim Date: Mon, 17 Mar 2025 01:25:38 +0300 Subject: [PATCH] make `color` theme-based for `custom` elements --- src/pages/article/show.tsx | 10 ++++++++-- src/pages/sight/show.tsx | 10 +++++++++- src/pages/station/show.tsx | 10 +++++++++- 3 files changed, 26 insertions(+), 4 deletions(-) diff --git a/src/pages/article/show.tsx b/src/pages/article/show.tsx index fba0f4a..ae2c7b9 100644 --- a/src/pages/article/show.tsx +++ b/src/pages/article/show.tsx @@ -131,8 +131,14 @@ export const ArticleShow = () => { ) : linkedMedia.length > 0 ? ( linkedMedia.map((mediaItem) => ( - - + `2px solid ${theme.palette.divider}`, + }} + > + {mediaFields.map(({label, data}) => ( diff --git a/src/pages/sight/show.tsx b/src/pages/sight/show.tsx index 4b71a52..d67bf84 100644 --- a/src/pages/sight/show.tsx +++ b/src/pages/sight/show.tsx @@ -127,7 +127,15 @@ export const SightShow = () => { Загрузка статей... ) : linkedArticles.length > 0 ? ( linkedArticles.map((article) => ( - + `2px solid ${theme.palette.divider}`, + }} + > {article.heading} diff --git a/src/pages/station/show.tsx b/src/pages/station/show.tsx index f33d51e..cea1964 100644 --- a/src/pages/station/show.tsx +++ b/src/pages/station/show.tsx @@ -136,7 +136,15 @@ export const StationShow = () => { Загрузка достопримечательностей... ) : linkedSights.length > 0 ? ( linkedSights.map((sight, index) => ( - + `2px solid ${theme.palette.divider}`, + }} + > {sightFields.map(({label, data}) => (