Skip to content

Commit ea9b097

Browse files
committed
fix pr comments
1 parent f5bc3f9 commit ea9b097

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

redisinsight/ui/src/components/database-overview/DatabaseOverview.tsx

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -62,14 +62,12 @@ const DatabaseOverview = (props: Props) => {
6262
})
6363
}, [windowDimensions, metricsProps, modulesProps])
6464

65-
const RediStackLogo = () => {
66-
return (
67-
<div className={styles.RediStackLogoWrapper}>
68-
<EuiIcon type={theme === Theme.Dark ? RediStackDark : RediStackLight} className={styles.redistackIcon}/>
69-
<EuiIcon type={theme === Theme.Dark ? RediStackDarkLogo : RediStackLightLogo} className={styles.redistackLogoIcon}/>
70-
</div>
71-
)
72-
}
65+
const RediStackLogo = (
66+
<div className={styles.RediStackLogoWrapper}>
67+
<EuiIcon type={theme === Theme.Dark ? RediStackDark : RediStackLight} className={styles.redistackIcon}/>
68+
<EuiIcon type={theme === Theme.Dark ? RediStackDarkLogo : RediStackLightLogo} className={styles.redistackLogoIcon}/>
69+
</div>
70+
)
7371

7472
const getTooltipContent = (metric: IMetric) => {
7573
if (!metric.children?.length) {
@@ -168,7 +166,7 @@ const DatabaseOverview = (props: Props) => {
168166
{isRediStack
169167
? (
170168
<DatabaseListModules
171-
content={isRediStack ? RediStackLogo() : undefined}
169+
content={isRediStack ? RediStackLogo : undefined}
172170
modules={modulesProps}
173171
withoutStyles
174172
/>

0 commit comments

Comments
 (0)