Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions src/components/Tag/Tag.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import type { ThemeType } from '../../theme/types'
import { type SvgSource, SvgUniversal } from '../../utils/SvgUniversal'

export interface TagProps
extends AccessibilityProps, Pick<ViewProps, 'testID'> {
extends AccessibilityProps, Pick<ViewProps, 'testID' | 'collapsable'> {
/** Текст */
text: string

Expand Down Expand Up @@ -64,13 +64,20 @@ export const Tag = memo<TagProps>(
style,
Icon,
testID,
collapsable,
...rest
}) => {
tagStyles.useVariants({ severity })

return (
<View style={style} testID={testID || TagTestId.root} {...rest}>
<View
collapsable={collapsable}
style={style}
testID={testID || TagTestId.root}
{...rest}
>
<View
collapsable={collapsable}
style={[tagStyles.container, rounded && tagStyles.roundedContainer]}
testID={TagTestId.innerContainer}
>
Expand Down
Loading