feat: use faster senja
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
import { setTheme } from '$lib/utils/functions/theme';
|
||||
import TextChip from '$lib/components/Chip/Text.svelte';
|
||||
import Plan from '$lib/components/Chip/Plan.svelte';
|
||||
import { PLAN_NAMES } from 'shared-constants/src/plans/constants';
|
||||
import { PLAN_NAMES } from 'shared/src/plans/constants';
|
||||
|
||||
export let canAddOrg = true;
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
|
||||
setTheme(org.theme);
|
||||
goto($currentOrgPath);
|
||||
|
||||
|
||||
open = false;
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
<script lang="ts">
|
||||
import { embedSenjaWidget } from 'shared/src/senja';
|
||||
import { onMount } from 'svelte';
|
||||
|
||||
export let id = '';
|
||||
|
||||
onMount(() => {
|
||||
embedSenjaWidget(id);
|
||||
});
|
||||
</script>
|
||||
|
||||
<div class="senja-embed" data-id={id} data-lazyload="false" data-spinner="false"></div>
|
||||
@@ -6,7 +6,7 @@
|
||||
import { currentOrg, currentOrgPath } from '$lib/utils/store/org';
|
||||
import { page } from '$app/stores';
|
||||
import Checkmark from 'carbon-icons-svelte/lib/Checkmark.svelte';
|
||||
import PLANS from 'shared-constants/src/plans/data.json';
|
||||
import PLANS from 'shared/src/plans/data.json';
|
||||
import { profile } from '$lib/utils/store/user';
|
||||
import { subscribeToProduct } from '$lib/utils/services/lemonsqueezy/subscribe';
|
||||
import { snackbar } from '$lib/components/Snackbar/store';
|
||||
|
||||
Reference in New Issue
Block a user