Skip to content

Commit b1f7734

Browse files
committed
GridPanel update
1 parent 0062808 commit b1f7734

1 file changed

Lines changed: 12 additions & 8 deletions

File tree

labkey-ui-ehr/src/ParticipantHistory/ParticipantReports.tsx

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React, { FC, memo, useState } from 'react';
2-
import { GridPanelWithModel, SchemaQuery, useServerContext } from '@labkey/components';
2+
import { GridPanelWithModel, SchemaQuery, useServerContext, withServerContext, NotificationsContextProvider } from '@labkey/components';
33

44

55
const modelId = 'editable_ehr_lookups'
@@ -11,7 +11,7 @@ const queryConfig = {
1111
includeTotalCount: true,
1212
};
1313

14-
export const ParticipantReports: FC = memo(() => {
14+
const ParticipantReportsImpl: FC = memo(() => {
1515

1616
const [activeTab, setActiveTab] = useState<number>(0);
1717
const { user } = useServerContext();
@@ -29,11 +29,13 @@ export const ParticipantReports: FC = memo(() => {
2929
</ul>
3030
{activeTab === 0 &&
3131
<div>
32-
<GridPanelWithModel
33-
asPanel={true}
34-
queryConfig={queryConfig}
35-
allowSelections={false}
36-
/>
32+
<NotificationsContextProvider>
33+
<GridPanelWithModel
34+
asPanel={true}
35+
queryConfig={queryConfig}
36+
allowSelections={false}
37+
/>
38+
</NotificationsContextProvider>
3739
</div>
3840
}
3941
{activeTab === 1 &&
@@ -44,4 +46,6 @@ export const ParticipantReports: FC = memo(() => {
4446
</div>
4547
)
4648

47-
});
49+
});
50+
51+
export const ParticipantReports = withServerContext(ParticipantReportsImpl);

0 commit comments

Comments
 (0)