mirror of
https://github.com/formbricks/formbricks.git
synced 2026-01-06 05:40:02 -06:00
Compare commits
2 Commits
4.4.2
...
copilot/su
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
97be740272 | ||
|
|
42f9c81421 |
@@ -1,3 +0,0 @@
|
|||||||
import { LinkSurveyLoading } from "@/modules/survey/link/loading";
|
|
||||||
|
|
||||||
export default LinkSurveyLoading;
|
|
||||||
@@ -53,9 +53,9 @@ export const I18nProvider = ({ children, language, defaultLanguage }: I18nProvid
|
|||||||
initializeI18n();
|
initializeI18n();
|
||||||
}, [locale, defaultLanguage]);
|
}, [locale, defaultLanguage]);
|
||||||
|
|
||||||
// Don't render children until i18n is ready to prevent hydration issues
|
// Don't render children until i18n is ready to prevent race conditions
|
||||||
if (!isReady) {
|
if (!isReady) {
|
||||||
return <div style={{ visibility: "hidden" }}>{children}</div>;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
@@ -1,11 +0,0 @@
|
|||||||
"use client";
|
|
||||||
export const LinkSurveyLoading = () => {
|
|
||||||
return (
|
|
||||||
<div className="flex h-full w-full items-center justify-center">
|
|
||||||
<div className="flex h-1/2 w-3/4 flex-col sm:w-1/2 lg:w-1/4">
|
|
||||||
<div className="ph-no-capture h-16 w-1/3 animate-pulse rounded-lg bg-slate-200 font-medium text-slate-900"></div>
|
|
||||||
<div className="ph-no-capture mt-4 h-full animate-pulse rounded-lg bg-slate-200 text-slate-900"></div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
);
|
|
||||||
};
|
|
||||||
Reference in New Issue
Block a user