From 1a9d5f97b69c34e024c50fe748370baabe688710 Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Thu, 27 Jun 2019 22:18:16 +0200 Subject: [PATCH] Add support for more than one custom category Fix #224 --- src/components/anchors.js | 4 ++- src/components/category.js | 6 +++-- src/components/picker/nimble-picker.js | 36 +++++++++++++++++++++----- src/utils/index.js | 2 ++ stories/index.js | 1 + 5 files changed, 39 insertions(+), 10 deletions(-) diff --git a/src/components/anchors.js b/src/components/anchors.js index e503101..0ecaf21 100644 --- a/src/components/anchors.js +++ b/src/components/anchors.js @@ -37,6 +37,8 @@ export default class Anchors extends React.PureComponent { return null } + const iconId = id.startsWith('custom-') ? 'custom' : id + return (