From af8707589ff1c04c2cbfb2e658aeb983102fd209 Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Thu, 11 May 2023 10:50:05 +1200 Subject: [PATCH] ENH Banner for previous version --- src/utils/nodes.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/utils/nodes.ts b/src/utils/nodes.ts index 33ffc05..b38d06c 100644 --- a/src/utils/nodes.ts +++ b/src/utils/nodes.ts @@ -157,6 +157,9 @@ const getVersionMessage = (): ReactElement | ReactElement[] | string | null => { const EOL = [ '3', ]; + const PREVIOUS_RELEASE = [ + '4', + ]; const PRE_RELEASE = [ '6', ]; @@ -191,6 +194,10 @@ const getVersionMessage = (): ReactElement | ReactElement[] | string | null => { 'has not yet been given a stable release. See the release roadmap for more information' )); } + if (PREVIOUS_RELEASE.includes(version)) { + return parse(makeMessage('info', 'check-circle', 'supported', 'is still supported though will not receive any additional features')); + } + // CURRENT_RELEASE return parse(makeMessage('success', 'check-circle', 'supported', null)); };