frst-components 0.22.51 → 0.22.52
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/dist/index.js
CHANGED
|
@@ -11464,14 +11464,12 @@ function NotificationCard(props) {
|
|
|
11464
11464
|
const handleDelete = async () => {
|
|
11465
11465
|
try {
|
|
11466
11466
|
setIsLoading(true);
|
|
11467
|
-
await
|
|
11467
|
+
await props.handleClickDelete();
|
|
11468
|
+
setIsLoading(false);
|
|
11468
11469
|
}
|
|
11469
11470
|
catch (error) {
|
|
11470
11471
|
console.error('Error deleting notification', error);
|
|
11471
11472
|
}
|
|
11472
|
-
finally {
|
|
11473
|
-
setIsLoading(false);
|
|
11474
|
-
}
|
|
11475
11473
|
};
|
|
11476
11474
|
return (jsxRuntime.jsxs(styled.ThemeProvider, { theme: FRSTTheme, children: [jsxRuntime.jsxs(notificationContainer$1, { style: {
|
|
11477
11475
|
...props.style,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/FI/notificationCard/index.tsx"],"names":[],"mappings":";AAUA,UAAU,iBAAiB;IACzB,kBAAkB,EAAE,MAAM,CAAA;IAC1B,uBAAuB,EAAE,MAAM,CAAA;IAC/B,iBAAiB,EAAE,OAAO,CAAA;IAC1B,gBAAgB,EAAE,MAAM,CAAA;IACxB,gBAAgB,CAAC,EAAE,MAAM,CAAA;IAEzB,OAAO,EAAE,MAAM,CAAA;IACf,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAA;IAE3B,WAAW,EAAE,MAAM,IAAI,CAAA;IACvB,iBAAiB,EAAE,MAAM,IAAI,CAAA;IAC7B,eAAe,CAAC,EAAE,MAAM,IAAI,CAAA;CAC7B;AAUD,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAC,KAAK,EAAE,iBAAiB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/FI/notificationCard/index.tsx"],"names":[],"mappings":";AAUA,UAAU,iBAAiB;IACzB,kBAAkB,EAAE,MAAM,CAAA;IAC1B,uBAAuB,EAAE,MAAM,CAAA;IAC/B,iBAAiB,EAAE,OAAO,CAAA;IAC1B,gBAAgB,EAAE,MAAM,CAAA;IACxB,gBAAgB,CAAC,EAAE,MAAM,CAAA;IAEzB,OAAO,EAAE,MAAM,CAAA;IACf,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAA;IAE3B,WAAW,EAAE,MAAM,IAAI,CAAA;IACvB,iBAAiB,EAAE,MAAM,IAAI,CAAA;IAC7B,eAAe,CAAC,EAAE,MAAM,IAAI,CAAA;CAC7B;AAUD,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAC,KAAK,EAAE,iBAAiB,eAmEhE"}
|