From 473e6cc114d477d04a8a53ea82143031ed77c23a Mon Sep 17 00:00:00 2001 From: Rostyslav Date: Mon, 8 Jan 2024 17:18:04 +0200 Subject: [PATCH 1/2] fix: scenes fetching and tabs styles --- .../components/Tabs/Tabs.component.jsx | 12 ++-- .../components/Tabs/Tabs.module.scss | 65 +++++++++++++++---- .../ScenesModal/ScenesModal.component.jsx | 64 ++++++++++-------- 3 files changed, 94 insertions(+), 47 deletions(-) diff --git a/src/components/components/Tabs/Tabs.component.jsx b/src/components/components/Tabs/Tabs.component.jsx index eaa5adc4..7379a3c9 100644 --- a/src/components/components/Tabs/Tabs.component.jsx +++ b/src/components/components/Tabs/Tabs.component.jsx @@ -16,6 +16,7 @@ import { Hint } from './components'; * label: string; * value: string; * hint?: string; + * disabled?: boolean * }; * selectedTabClassName: string; * }} props @@ -23,15 +24,16 @@ import { Hint } from './components'; const Tabs = ({ tabs, selectedTabClassName, className }) => (
{!!tabs?.length && - tabs.map(({ label, value, onClick, isSelected, hint }) => ( + tabs.map(({ label, value, onClick, isSelected, hint, disabled }) => (