From 53ffee91b432b726bc070083bebe7a6d107e8f9d Mon Sep 17 00:00:00 2001 From: Ines Montani Date: Wed, 1 Jul 2020 13:11:00 +0200 Subject: [PATCH] Experiment with hiding "new" tags --- website/src/components/tag.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/website/src/components/tag.js b/website/src/components/tag.js index 090cc9f81..76d1d90b8 100644 --- a/website/src/components/tag.js +++ b/website/src/components/tag.js @@ -11,7 +11,10 @@ const Tag = ({ spaced, variant, tooltip, children }) => { const isValid = isString(children) && !isNaN(children) const version = isValid ? Number(children).toFixed(1) : children const tooltipText = `This feature is new and was introduced in spaCy v${version}` - return ( + // TODO: we probably want to handle this more elegantly, but the idea is + // that we can hide tags referring to old versions + const hideTag = version.startsWith('2') + return hideTag ? null : ( v{version}