diff --git a/rsconcept/frontend/src/components/SelectedCounter.tsx b/rsconcept/frontend/src/components/SelectedCounter.tsx index 8ba9d0f5..e8d0b4bd 100644 --- a/rsconcept/frontend/src/components/SelectedCounter.tsx +++ b/rsconcept/frontend/src/components/SelectedCounter.tsx @@ -1,19 +1,19 @@ import Overlay from '@/components/ui/Overlay'; interface SelectedCounterProps { - total: number; - selected: number; + totalCount: number; + selectedCount: number; position?: string; hideZero?: boolean; } -function SelectedCounter({ total, selected, hideZero, position = 'top-0 left-0' }: SelectedCounterProps) { - if (selected === 0 && hideZero) { +function SelectedCounter({ totalCount, selectedCount, hideZero, position = 'top-0 left-0' }: SelectedCounterProps) { + if (selectedCount === 0 && hideZero) { return null; } return ( - Выбор {selected} из {total} + Выбор {selectedCount} из {totalCount} ); } diff --git a/rsconcept/frontend/src/components/ui/Button.tsx b/rsconcept/frontend/src/components/ui/Button.tsx index 942721fe..475a7a44 100644 --- a/rsconcept/frontend/src/components/ui/Button.tsx +++ b/rsconcept/frontend/src/components/ui/Button.tsx @@ -9,6 +9,7 @@ interface ButtonProps extends CProps.Control, CProps.Colors, CProps.Button { icon?: React.ReactNode; dense?: boolean; + hideTitle?: boolean; loading?: boolean; } @@ -19,6 +20,7 @@ function Button({ loading, dense, disabled, + hideTitle, noBorder, noOutline, colors = 'clr-btn-default', @@ -46,6 +48,7 @@ function Button({ )} data-tooltip-id={title ? globalIDs.tooltip : undefined} data-tooltip-content={title} + data-tooltip-hidden={hideTitle} {...restProps} > {icon ? icon : null} diff --git a/rsconcept/frontend/src/components/ui/MiniButton.tsx b/rsconcept/frontend/src/components/ui/MiniButton.tsx index 74d24dad..370724c1 100644 --- a/rsconcept/frontend/src/components/ui/MiniButton.tsx +++ b/rsconcept/frontend/src/components/ui/MiniButton.tsx @@ -7,9 +7,10 @@ import { CProps } from '../props'; interface MiniButtonProps extends CProps.Button { icon: React.ReactNode; noHover?: boolean; + hideTitle?: boolean; } -function MiniButton({ icon, noHover, tabIndex, title, className, ...restProps }: MiniButtonProps) { +function MiniButton({ icon, noHover, hideTitle, tabIndex, title, className, ...restProps }: MiniButtonProps) { return (