@cccsaurora/howler-ui 2.19.0-cases.861 → 2.19.0-cases.862
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -19,5 +19,5 @@ export declare const RecordContext: import("use-context-selector").Context<Recor
|
|
|
19
19
|
* Central repository for storing individual hit data across the application. Allows efficient retrieval of hits across componenents.
|
|
20
20
|
*/
|
|
21
21
|
declare const RecordProvider: FC<PropsWithChildren>;
|
|
22
|
-
export declare const
|
|
22
|
+
export declare const useRecordContextSelector: <Selected>(selector: (value: RecordContextType) => Selected) => Selected;
|
|
23
23
|
export default RecordProvider;
|
|
@@ -107,7 +107,7 @@ const RecordProvider = ({ children }) => {
|
|
|
107
107
|
loadRecords
|
|
108
108
|
}, children: children }));
|
|
109
109
|
};
|
|
110
|
-
export const
|
|
110
|
+
export const useRecordContextSelector = (selector) => {
|
|
111
111
|
return useContextSelector(RecordContext, selector);
|
|
112
112
|
};
|
|
113
113
|
export default RecordProvider;
|
|
@@ -3,7 +3,7 @@ import { OpenInNew } from '@mui/icons-material';
|
|
|
3
3
|
import { Card, CardContent, IconButton, Skeleton, Stack, Typography } from '@mui/material';
|
|
4
4
|
import api from '@cccsaurora/howler-ui/api';
|
|
5
5
|
import AppListEmpty from '@cccsaurora/howler-ui/commons/components/display/AppListEmpty';
|
|
6
|
-
import {
|
|
6
|
+
import { useRecordContextSelector } from '@cccsaurora/howler-ui/components/app/providers/RecordProvider';
|
|
7
7
|
import { ViewContext } from '@cccsaurora/howler-ui/components/app/providers/ViewProvider';
|
|
8
8
|
import HitBanner from '@cccsaurora/howler-ui/components/elements/hit/HitBanner';
|
|
9
9
|
import { HitLayout } from '@cccsaurora/howler-ui/components/elements/hit/HitLayout';
|