File tree Expand file tree Collapse file tree 2 files changed +26
-11
lines changed Expand file tree Collapse file tree 2 files changed +26
-11
lines changed Original file line number Diff line number Diff line change @@ -22,12 +22,19 @@ withDefaults(defineProps<Props>(), {
22
22
23
23
<template >
24
24
<div class =" empty-state" >
25
- <Component
26
- :is =" icon"
27
- v-if =" icon != null"
28
- class =" empty-state-icon"
29
- :class =" { 'empty-state-icon-big': iconSize === EmptyStateIconSize.Big }"
30
- />
25
+ <div
26
+ v-if =" icon != null || $slots.icon != null"
27
+ class =" empty-state-icon-wrapper"
28
+ >
29
+ <slot name =" icon" >
30
+ <Component
31
+ :is =" icon"
32
+ v-if =" icon != null"
33
+ class =" empty-state-icon"
34
+ :class =" { 'empty-state-icon-big': iconSize === EmptyStateIconSize.Big }"
35
+ />
36
+ </slot >
37
+ </div >
31
38
32
39
<PageHeader >
33
40
{{ description }}
@@ -58,7 +65,10 @@ withDefaults(defineProps<Props>(), {
58
65
& -icon {
59
66
font-size : 30px ;
60
67
color : var (--white );
61
- margin-bottom : 15px ;
68
+
69
+ & -wrapper {
70
+ margin-bottom : 15px
71
+ }
62
72
63
73
& -big {
64
74
font-size : 50px ;
Original file line number Diff line number Diff line change @@ -47,10 +47,15 @@ function handleLogin() {
47
47
</script >
48
48
49
49
<template >
50
- <EmptyState
51
- :icon =" Icons.Github"
52
- description =" Welcome to Gitification"
53
- >
50
+ <EmptyState description =" Welcome to Gitification" >
51
+ <template #icon >
52
+ <img
53
+ width =" 75"
54
+ height =" 75"
55
+ src =" /src/assets/img/icon.png"
56
+ >
57
+ </template >
58
+
54
59
<template #footer >
55
60
<AppButton @click =" handleLogin" >
56
61
Log in via Github
You can’t perform that action at this time.
0 commit comments