From ca831dbe194a6508f67bcf646a7b47c087043546 Mon Sep 17 00:00:00 2001 From: Aaron Liu <912394456@qq.com> Date: Fri, 7 Apr 2023 19:42:19 +0800 Subject: [PATCH] fix(dashboard): add missing utils for thumb setting --- src/utils/index.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/utils/index.js b/src/utils/index.js index 9f2c935..bc7624a 100644 --- a/src/utils/index.js +++ b/src/utils/index.js @@ -161,3 +161,12 @@ export const removeI18nCache = () => { } }); }; + +export const getSelectItemStyles = (name, personName, theme) => { + return { + fontWeight: + personName.indexOf(name) === -1 + ? theme.typography.fontWeightRegular + : theme.typography.fontWeightMedium, + }; +}; \ No newline at end of file