From 0ec539854cd5fbe6835051cfd55f621044fa7f76 Mon Sep 17 00:00:00 2001 From: Thomas Nordquist Date: Mon, 15 Apr 2019 22:37:30 +0200 Subject: [PATCH] Add comprehendable description for auto-expand Fixes #102 --- app/src/components/SettingsDrawer/Settings.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/components/SettingsDrawer/Settings.tsx b/app/src/components/SettingsDrawer/Settings.tsx index 3330b29..fd611df 100644 --- a/app/src/components/SettingsDrawer/Settings.tsx +++ b/app/src/components/SettingsDrawer/Settings.tsx @@ -105,13 +105,13 @@ class Settings extends React.Component { private toggleTheme() { const { actions, theme } = this.props - return + return } private renderAutoExpand() { const { classes, autoExpandLimit } = this.props - const limits = autoExpandLimitSet.map(limit => {limit.name}) + const limits = autoExpandLimitSet.map(limit => {limit.limit < 10000 && limit.limit > 0 ? `≤ ${limit.limit} topics` : limit.name}) return (
Auto Expand