migracion a svelte 5
Signed-off-by: fede <federico.nicolas.polidoro@gmail.com>
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
let isVerified = writable(false);
|
||||
|
||||
|
||||
export let component;
|
||||
let { component } = $props();
|
||||
|
||||
let redirect = window.location.pathname;
|
||||
|
||||
@@ -43,7 +43,8 @@
|
||||
</div>
|
||||
{:else}
|
||||
{#if $isAuthenticated}
|
||||
<svelte:component this={component}/>
|
||||
{@const SvelteComponent = component}
|
||||
<SvelteComponent/>
|
||||
{:else}
|
||||
{navigate('/')}
|
||||
{/if}
|
||||
|
||||
Reference in New Issue
Block a user