File tree Expand file tree Collapse file tree 3 files changed +10
-6
lines changed Expand file tree Collapse file tree 3 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -124,9 +124,12 @@ export interface AppMetadata {
124
124
/* App name */
125
125
name : string
126
126
127
- /* SVG icon string, with height set to 100% */
127
+ /* SVG icon string or image url , with height set to 100% */
128
128
icon : string
129
129
130
+ /* SVG logo (icon and text) string or image url, with width set to 100% */
131
+ logo ?: string
132
+
130
133
/* Description of app*/
131
134
description ?: string
132
135
Original file line number Diff line number Diff line change @@ -68,6 +68,7 @@ const appMetadata = Joi.object({
68
68
name : Joi . string ( ) . required ( ) ,
69
69
description : Joi . string ( ) . required ( ) ,
70
70
icon : Joi . string ( ) . required ( ) ,
71
+ logo : Joi . string ( ) ,
71
72
gettingStartedGuide : Joi . string ( ) ,
72
73
email : Joi . string ( ) ,
73
74
appUrl : Joi . string ( ) ,
Original file line number Diff line number Diff line change 9
9
export let step: keyof i18n [' connect' ]
10
10
11
11
const { appMetadata } = internalState$ .getValue ()
12
- const { icon, name = ' This app' } = appMetadata || {}
12
+ const { icon, logo, name = ' This app' } = appMetadata || {}
13
13
14
14
const defaultContent = en .connect [step ].sidebar
15
15
const { subheading, paragraph } = defaultContent
110
110
<div class =" sidebar" >
111
111
<div class =" inner-container" >
112
112
<div class =" icon-container" >
113
- {#if icon }
114
- {#if isUrl (icon )}
115
- <img height ="100%" src ={icon } alt =" logo" />
113
+ {#if logo || icon }
114
+ {#if isUrl (logo || icon )}
115
+ <img height ="100%" src ={logo || icon } alt =" logo" />
116
116
{:else }
117
- {@html icon }
117
+ {@html logo || icon }
118
118
{/if }
119
119
{:else }
120
120
{@html blocknative }
You can’t perform that action at this time.
0 commit comments