diff --git a/.changeset/lazy-mangos-promise.md b/.changeset/lazy-mangos-promise.md new file mode 100644 index 000000000..f98642a4e --- /dev/null +++ b/.changeset/lazy-mangos-promise.md @@ -0,0 +1,5 @@ +--- +"@carrot-kpi/react": patch +--- + +Adjust template component style and fallback container styles diff --git a/.changeset/moody-days-brake.md b/.changeset/moody-days-brake.md new file mode 100644 index 000000000..38450f3bd --- /dev/null +++ b/.changeset/moody-days-brake.md @@ -0,0 +1,5 @@ +--- +"@carrot-kpi/host-frontend": patch +--- + +Fix height styles when loading on page and create component diff --git a/packages/frontend/src/pages/create-with-template-id/index.tsx b/packages/frontend/src/pages/create-with-template-id/index.tsx index ebdee8cff..2d8a36c5a 100644 --- a/packages/frontend/src/pages/create-with-template-id/index.tsx +++ b/packages/frontend/src/pages/create-with-template-id/index.tsx @@ -30,7 +30,7 @@ export const CreateWithTemplateId = () => { const ipfsGatewayURL = useIPFSGatewayURL(); const invalidateLatestKPITokens = useInvalidateLatestKPITokens(); - const [loading, setLoading] = useState(false); + const [loading, setLoading] = useState(true); const [template, setTemplate] = useState( state && "specification" in state.template ? state.template : null, ); @@ -126,17 +126,17 @@ export const CreateWithTemplateId = () => { return ( -
+
{loading || loadingPermission ? ( -
+
) : !creatorAllowed ? ( -
+
) : !pinningProxyAuthenticated ? ( -
+
) : template ? ( @@ -144,12 +144,12 @@ export const CreateWithTemplateId = () => { key={formKey} template={template || undefined} fallback={ -
+
} error={ -
+
{ return ( -
+
+
} error={ -
+
{fallback}; + if (loading || !template || !Component) + return
{fallback}
; return (