northants-design-system 0.4.4 → 0.4.5
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.
package/build/index.esm.js
CHANGED
|
@@ -29011,8 +29011,8 @@ const AddToShortlist = styled.button`
|
|
|
29011
29011
|
|
|
29012
29012
|
var DirectoryShortListContext = createContext({});
|
|
29013
29013
|
var DirectoryShortListProvider = function (_a) {
|
|
29014
|
-
var children = _a.children;
|
|
29015
|
-
var
|
|
29014
|
+
var _b = _a.shortlistKey, shortlistKey = _b === void 0 ? 'DirectoryShort' : _b, children = _a.children;
|
|
29015
|
+
var _c = useLocalStorage(shortlistKey, []), favourites = _c[0], setFavourites = _c[1];
|
|
29016
29016
|
var toggleFavourites = function (id, name, snippet, email, website, phone) {
|
|
29017
29017
|
var updatedFavourites = __spreadArray([], favourites, true);
|
|
29018
29018
|
if (isFavourite(id)) {
|