Skip to content

Commit

Permalink
fix(List): removed needles context and fixed naming for remaining con…
Browse files Browse the repository at this point in the history
…text
  • Loading branch information
N00nDay committed Dec 30, 2022
1 parent 17e4278 commit 6c2c383
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
6 changes: 2 additions & 4 deletions src/lib/components/list/Avatar.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,8 @@
let failed = false;
let loading = true;
setContext('avatar-src', src);
setContext('avatar-alt', alt);
setContext('avatar-shape', shape);
setContext('avatar-size', size);
setContext('list-avatar-shape', shape);
setContext('list-avatar-size', size);
let defaultClass = '';
let containerDefaultClass = '';
Expand Down
4 changes: 2 additions & 2 deletions src/lib/components/list/Placeholder.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
export let loading = false;
const shape: 'circle' | 'rounded' | 'square' = getContext('avatar-shape');
const size: 'xs' | 'sm' | 'md' | 'lg' | 'xl' = getContext('avatar-size');
const shape: 'circle' | 'rounded' | 'square' = getContext('list-avatar-shape');
const size: 'xs' | 'sm' | 'md' | 'lg' | 'xl' = getContext('list-avatar-size');
let iconContainerClass = 'absolute text-light-icon dark:text-dark-icon h-full w-full';
let iconSize = '';
Expand Down

0 comments on commit 6c2c383

Please sign in to comment.