fix(seg hydration): auto-hydrate RT struct on second load with disableConfirmationPrompts (#5875)
This commit is contained in:
1 parent
0f822aaf48
commit
6f773f9972
11 files changed
+166
-17
No files matched your search
@@ -32,12 +32,19 @@ const SegmentationCollapsedHeader = ({ children }: { children: React.ReactNode }
|
||||
|
||||
// Dropdown menu component - specifically for dropdown menu content
|
||||
const SegmentationCollapsedDropdownMenu = ({ children }: { children: React.ReactNode }) => {
|
||||
const { segmentationRepresentationTypes } = useSegmentationTableContext(
|
||||
'SegmentationCollapsedDropdownMenu'
|
||||
);
|
||||
const dataCyTypeSuffix = segmentationRepresentationTypes?.[0]
|
||||
? `-${segmentationRepresentationTypes[0]}`
|
||||
: '';
|
||||
return (
|
||||
<DropdownMenu>
|
||||
<DropdownMenuTrigger asChild>
|
||||
<Button
|
||||
variant="ghost"
|
||||
size="icon"
|
||||
data-cy={`segmentation-collapsed-more-btn${dataCyTypeSuffix}`}
|
||||
>
|
||||
<Icons.More className="h-6 w-6" />
|
||||
</Button>
|
||||
|
||||
Reference in new issue
Block a user