Update VersionHistoryPanel.tsx

This commit is contained in:
Nate Kelley 2025-03-26 09:59:56 -06:00
parent 46c7e3ea67
commit 1a361bf102
No known key found for this signature in database
GPG Key ID: FD90372AB8D98B4F
1 changed files with 11 additions and 2 deletions

View File

@ -40,7 +40,16 @@ export const VersionHistoryPanel = React.memo(
});
return (
<AppPageLayout header={<PanelHeader />} scrollable>
<AppPageLayout
header={useMemo(
() => (
<PanelHeader />
),
[]
)}
scrollable
headerBorderVariant="ghost"
headerClassName="border-l">
<div className="my-2 flex flex-col px-1">
{listItems?.map((item) => (
<ListItem
@ -96,7 +105,7 @@ const PanelHeader = React.memo(() => {
const removeVersionHistoryQueryParams = useCloseVersionHistory();
return (
<div className="flex items-center justify-between">
<div className="flex w-full items-center justify-between">
<Text>Version History</Text>
<Button variant="ghost" prefix={<Xmark />} onClick={removeVersionHistoryQueryParams} />
</div>