From 093549175f28d3bf9bf9b4d7b2cc8b8b46736e2a Mon Sep 17 00:00:00 2001 From: Matilde Park Date: Tue, 13 Oct 2020 21:00:00 -0400 Subject: [PATCH] landscape: resource descriptions include links --- .../landscape/components/ResourceSkeleton.tsx | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/pkg/interface/src/views/landscape/components/ResourceSkeleton.tsx b/pkg/interface/src/views/landscape/components/ResourceSkeleton.tsx index ae7b282af..b907c2954 100644 --- a/pkg/interface/src/views/landscape/components/ResourceSkeleton.tsx +++ b/pkg/interface/src/views/landscape/components/ResourceSkeleton.tsx @@ -1,4 +1,4 @@ -import React, { useCallback, ReactNode } from "react"; +import React, { ReactNode } from "react"; import { Row, Box, Col, Text } from "@tlon/indigo-react"; import styled from "styled-components"; import { Link } from "react-router-dom"; @@ -6,8 +6,9 @@ import { Link } from "react-router-dom"; import { ChatResource } from "~/views/apps/chat/ChatResource"; import { PublishResource } from "~/views/apps/publish/PublishResource"; +import RichText from '~/views/components/RichText'; + import { Association } from "~/types/metadata-update"; -import { StoreState } from "~/logic/store/type"; import GlobalApi from "~/logic/api/global"; import { RouteComponentProps, Route, Switch } from "react-router-dom"; import { ChannelSettings } from "./ChannelSettings"; @@ -34,6 +35,12 @@ export function ResourceSkeleton(props: ResourceSkeletonProps) { const appPath = association["app-path"]; const workspace = (baseUrl === '/~landscape/home') ? '/home' : association["group-path"]; const title = props.title || association?.metadata?.title; + const disableRemoteContent = { + audioShown: false, + imageShown: false, + oembedShown: false, + videoShown: false + }; return ( - {title} + {title} + {association?.metadata?.description} +