@visns-studio/visns-components 1.6.12 → 1.7.1
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.
|
@@ -150,31 +150,33 @@ function Notification(props) {
|
|
|
150
150
|
<div ref={wrapperRef}>
|
|
151
151
|
{items.length > 0 ? (
|
|
152
152
|
<div className={containerClass}>
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
<
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
<
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
153
|
+
<div className="notiscrollwrap">
|
|
154
|
+
{items.map((item, index) => (
|
|
155
|
+
<div className={divClass} key={item.id}>
|
|
156
|
+
<Bell
|
|
157
|
+
size={19}
|
|
158
|
+
strokeWidth={2}
|
|
159
|
+
className={iconBellClass}
|
|
160
|
+
/>{" "}
|
|
161
|
+
{parse(item.data.label)}{" "}
|
|
162
|
+
<span>
|
|
163
|
+
[
|
|
164
|
+
{moment(item.created_at).format(
|
|
165
|
+
"DD/MM - H:mma"
|
|
166
|
+
)}
|
|
167
|
+
]
|
|
168
|
+
</span>{" "}
|
|
169
|
+
<button onClick={markAsRead}>
|
|
170
|
+
<CircleX
|
|
171
|
+
size={24}
|
|
172
|
+
data-id={item.id}
|
|
173
|
+
data-index={index}
|
|
174
|
+
className={iconXClass}
|
|
175
|
+
/>
|
|
176
|
+
</button>
|
|
177
|
+
</div>
|
|
178
|
+
))}
|
|
179
|
+
</div>
|
|
178
180
|
<div className={actionClass}>
|
|
179
181
|
<button onClick={showAllNotifications}>
|
|
180
182
|
View All
|
package/package.json
CHANGED
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"react-dom": "^17.0.1"
|
|
35
35
|
},
|
|
36
36
|
"name": "@visns-studio/visns-components",
|
|
37
|
-
"version": "1.
|
|
37
|
+
"version": "1.7.1",
|
|
38
38
|
"description": "Various packages to assist in the development of our Custom Applications.",
|
|
39
39
|
"main": "index.js",
|
|
40
40
|
"devDependencies": {},
|