refac
This commit is contained in:
1 parent
8a42aa53e8
commit
f822605b35
3 files changed
+68
-12
No files matched your search
@@ -5,10 +5,11 @@
|
||||
|
||||
import LockClosed from '$lib/components/icons/LockClosed.svelte';
|
||||
|
||||
const i18n = getContext<Writable<i18nType>>('i18n');
|
||||
|
||||
export let className = '';
|
||||
export let disabled = false;
|
||||
|
||||
const i18n = getContext<Writable<i18nType>>('i18n');
|
||||
export let label = '';
|
||||
</script>
|
||||
|
||||
<button
|
||||
@@ -18,5 +19,5 @@
|
||||
on:click
|
||||
>
|
||||
<LockClosed strokeWidth="2.5" className="size-3 shrink-0" />
|
||||
<span class="shrink-0">{$i18n.t('Access')}</span>
|
||||
<span class="shrink-0">{label || $i18n.t('Access')}</span>
|
||||
</button>
|
||||
Reference in new issue
Block a user