From 77ad1fdb367ef61d55adbe07fa517475b5626b94 Mon Sep 17 00:00:00 2001 From: Hunter Miller Date: Thu, 16 Sep 2021 16:23:11 -0500 Subject: [PATCH] permalink: app embed image support --- .../src/views/apps/permalinks/embed.tsx | 21 +++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/pkg/interface/src/views/apps/permalinks/embed.tsx b/pkg/interface/src/views/apps/permalinks/embed.tsx index 9641f728d6..11067cfd10 100644 --- a/pkg/interface/src/views/apps/permalinks/embed.tsx +++ b/pkg/interface/src/views/apps/permalinks/embed.tsx @@ -1,4 +1,4 @@ -import { BaseAnchor, Box, Button, Center, Col, H3, Icon, Row, Text } from '@tlon/indigo-react'; +import { BaseAnchor, Box, Button, Center, Col, H3, Icon, Image, Row, Text } from '@tlon/indigo-react'; import { Association, GraphNode, resourceFromPath, GraphConfig } from '@urbit/api'; import React, { useCallback, useEffect, useState } from 'react'; import _ from 'lodash'; @@ -212,18 +212,27 @@ function AppPermalink({ link, ship, desk }: Omit) { padding={3} bg="washedGray" borderRadius={3} - onClick={(e) => { - e.stopPropagation(); - }} > + bg={treaty?.color || 'gray'} + > + {treaty?.image && ( + + )} +

{treaty?.title}

{treaty?.ship && }