diff --git a/src/frontend/assets/icons/unwnowndapp.png b/src/frontend/assets/icons/unwnowndapp.png new file mode 100644 index 0000000000..6e175aa5ef Binary files /dev/null and b/src/frontend/assets/icons/unwnowndapp.png differ diff --git a/src/frontend/src/flows/dappsExplorer/dapps.ts b/src/frontend/src/flows/dappsExplorer/dapps.ts index 1cc2543255..f069c3cd26 100644 --- a/src/frontend/src/flows/dappsExplorer/dapps.ts +++ b/src/frontend/src/flows/dappsExplorer/dapps.ts @@ -43,6 +43,10 @@ export class KnownDapp { return this.descr.oneLiner; } + public set oneLiner(oneLiner: string | undefined) { + this.descr.oneLiner = oneLiner; + } + public get website(): string | undefined { return this.descr.website; } diff --git a/src/frontend/src/flows/dappsExplorer/index.ts b/src/frontend/src/flows/dappsExplorer/index.ts index d677ddb976..311cb319c8 100644 --- a/src/frontend/src/flows/dappsExplorer/index.ts +++ b/src/frontend/src/flows/dappsExplorer/index.ts @@ -62,12 +62,10 @@ const dappsExplorerTemplate = ({ export const dappsExplorerPage = renderPage(dappsExplorerTemplate); -export const dappTemplate = ({ - logoSrc, - name, - oneLiner, - oneLinerAboveTitle = false, -}: KnownDapp & { oneLinerAboveTitle?: boolean }): TemplateResult => { +export const dappTemplate = ( + { logoSrc, name, oneLiner }: KnownDapp, + oneLinerAboveTitle = false +): TemplateResult => { return html`