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.js
CHANGED
|
@@ -1603,7 +1603,7 @@ var assets = {
|
|
|
1603
1603
|
var appConfig = {
|
|
1604
1604
|
contentMaxWidth: 1100
|
|
1605
1605
|
};
|
|
1606
|
-
var defaultAlertDuration =
|
|
1606
|
+
var defaultAlertDuration = 2.3 * 1e3;
|
|
1607
1607
|
|
|
1608
1608
|
// src/components/alerts/AlertsHolder.tsx
|
|
1609
1609
|
var import_react8 = require("react");
|
|
@@ -1955,7 +1955,7 @@ var ButtonComponent = function Button({
|
|
|
1955
1955
|
const theme2 = useTheme();
|
|
1956
1956
|
const isLoadingHook = useLoader(loaderName);
|
|
1957
1957
|
const betterHtmlContext2 = useBetterHtmlContextInternal();
|
|
1958
|
-
const isLoadingElement = isLoading
|
|
1958
|
+
const isLoadingElement = isLoading || isLoadingHook;
|
|
1959
1959
|
const styledComponentStyles = useStyledComponentStyles(
|
|
1960
1960
|
{
|
|
1961
1961
|
...betterHtmlContext2.components.button?.style?.default,
|