From b3bc04cdb6e8ee13f1d44c12de5f14397ddcca4a Mon Sep 17 00:00:00 2001 From: Sebastian-ubs <141921979+Sebastian-ubs@users.noreply.github.com> Date: Wed, 5 Jun 2024 18:37:50 +0200 Subject: [PATCH] preview app: add non-text tab trigger (#926) add non-text tab trigger to tabs preview --- .../preview/components/basics.component.tsx | 22 +++++++++++-------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/lib/platform-bible-react/src/preview/components/basics.component.tsx b/lib/platform-bible-react/src/preview/components/basics.component.tsx index b29cf6817a..a621469067 100644 --- a/lib/platform-bible-react/src/preview/components/basics.component.tsx +++ b/lib/platform-bible-react/src/preview/components/basics.component.tsx @@ -39,7 +39,7 @@ function Basics() {
{/* eslint-disable-next-line no-alert */} - alert('Hello World')}>Plain Shadcn Button + alert('Hello World')}>Shadcn Button
@@ -115,26 +115,30 @@ function Basics() { - + - Tab 1 - Tab 2 + + + + Tab 2 Tab 3 - no linked content Tab 1 Content - Tab 2 Content + Tab 2 Content {/* intentionally left out 3 to see the effect */}
- + - Tab 1 - Tab 2 + + + + Tab 2 Tab 3 Tab 4 Tab 1 Content - Tab 2 Content + Tab 2 Content Tab 3 Content Tab 4 Content