File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 11<script >
2- import MyIcon from ' ./MyIcon.astro' ;
32 import { onMount } from ' svelte' ;
43
54 let error = false ;
3332{#if ! error && ! loading }
3433 <div class =" github" >
3534 <a class =" category" href =" https://github.com/tomalaforge/angular-challenges" >
36- <MyIcon name =" star" />
35+ <slot name =" star" />
3736 <div >{stargazersCount }</div >
3837 </a >
3938
4039 <div class =" category fork" >
41- <MyIcon name =" fork" viewBox = " 0 0 16 16 " />
40+ <slot name =" fork" />
4241 <div >{forksCount }</div >
4342 </div >
4443 </div >
Original file line number Diff line number Diff line change 11---
22import Default from ' @astrojs/starlight/components/SiteTitle.astro' ;
33import GitHubStats from ' ./GitHubStats.svelte' ;
4+ import MyIcon from ' ./MyIcon.astro' ;
45
56---
67
78<Default {... Astro .props }>
89 <slot />
910</Default >
1011
11- <GitHubStats client:load />
12+ <GitHubStats client:load >
13+ <MyIcon name =" star" slot =" star" />
14+ <MyIcon name =" fork" viewBox =" 0 0 16 16" slot =" fork" />
15+ </GitHubStats >
1216
1317
You can’t perform that action at this time.
0 commit comments