Skip to content

Commit fe742a1

Browse files
committed
Remove duplicate header content
1 parent df81317 commit fe742a1

File tree

1 file changed

+0
-29
lines changed
  • polaris-react/src/components/Modal/components/Header

1 file changed

+0
-29
lines changed

polaris-react/src/components/Modal/components/Header/Header.tsx

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -55,33 +55,4 @@ export function Header({
5555
</Columns>
5656
</Box>
5757
);
58-
59-
if (titleHidden || !children) {
60-
return titleHiddenMarkup;
61-
}
62-
63-
return (
64-
<Box
65-
paddingBlockStart="4"
66-
paddingBlockEnd="4"
67-
paddingInlineStart="5"
68-
paddingInlineEnd="5"
69-
borderBlockEnd="divider"
70-
>
71-
<Columns columns={{xs: '1fr auto'}}>
72-
<Inline>
73-
<Text id={id} as="h2" variant="headingLg" breakWord>
74-
{children}
75-
</Text>
76-
</Inline>
77-
<Inline>
78-
<CloseButton
79-
pressed={closing}
80-
titleHidden={titleHidden}
81-
onClick={onClose}
82-
/>
83-
</Inline>
84-
</Columns>
85-
</Box>
86-
);
8758
}

0 commit comments

Comments
 (0)