@social-mail/social-mail-client 1.2.266 → 1.2.267

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@social-mail/social-mail-client",
3
- "version": "1.2.266",
3
+ "version": "1.2.267",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -12,6 +12,7 @@ import { apiPath } from "../../common/apiPath";
12
12
  import SocialMailApp from "../../common/SocialMailApp";
13
13
  import { formatPrice } from "../../common/currency";
14
14
  import { ContentPage } from "@web-atoms/web-controls/dist/mobile-app/MobileApp";
15
+ import { storeItemLink } from "./storeItemLink";
15
16
 
16
17
  styled.css `
17
18
 
@@ -110,7 +111,8 @@ export default class StoreItemListView extends AtomControl {
110
111
  <a
111
112
  class="name"
112
113
  title={item.name}
113
- text={item.name}/>
114
+ text={item.name}
115
+ href={storeItemLink(item)}/>
114
116
  <label
115
117
  class="description"
116
118
  title={item.description}
@@ -0,0 +1,4 @@
1
+ import { apiPath } from "../../common/apiPath";
2
+ import { IStoreItem } from "../../model/model";
3
+
4
+ export const storeItemLink = (item: IStoreItem) => apiPath(`/store/${item.storeID}/${item.storeItemID}/${encodeURIComponent(item.name)}`);