react-better-html 1.1.130 → 1.1.131
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 +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1517,7 +1517,7 @@ var assets = {
|
|
|
1517
1517
|
var appConfig = {
|
|
1518
1518
|
contentMaxWidth: 1100
|
|
1519
1519
|
};
|
|
1520
|
-
var defaultAlertDuration =
|
|
1520
|
+
var defaultAlertDuration = 2.3 * 1e3;
|
|
1521
1521
|
|
|
1522
1522
|
// src/components/alerts/AlertsHolder.tsx
|
|
1523
1523
|
import { memo as memo7 } from "react";
|
|
@@ -1869,7 +1869,7 @@ var ButtonComponent = function Button({
|
|
|
1869
1869
|
const theme2 = useTheme();
|
|
1870
1870
|
const isLoadingHook = useLoader(loaderName);
|
|
1871
1871
|
const betterHtmlContext2 = useBetterHtmlContextInternal();
|
|
1872
|
-
const isLoadingElement = isLoading
|
|
1872
|
+
const isLoadingElement = isLoading || isLoadingHook;
|
|
1873
1873
|
const styledComponentStyles = useStyledComponentStyles(
|
|
1874
1874
|
{
|
|
1875
1875
|
...betterHtmlContext2.components.button?.style?.default,
|