about summary refs log tree commit diff
path: root/src/view/com/lists/ListCard.tsx
diff options
context:
space:
mode:
authorAnsh <anshnanda10@gmail.com>2023-06-26 10:15:39 -0700
committerGitHub <noreply@github.com>2023-06-26 12:15:39 -0500
commitb9abd444e5c49420ba7a4e93bd781403349076ef (patch)
tree2f6c122d912921700ec3c98b70b579cb9b6eafe0 /src/view/com/lists/ListCard.tsx
parent1666a747eb346e3d6f9d64866881da4404fb3f56 (diff)
downloadvoidsky-b9abd444e5c49420ba7a4e93bd781403349076ef.tar.zst
[APP-657] Add share list functionality (#863)
* replace delete list button text with icon

* fix mute list styling on desktop

* add share button to nav bar on a list

* fix styling when on profile

* bug: add key to ImageHorzList

* clean up code & refactor

* fix styling for ListItems

* create a reusable ListActions component for actions on a list

* remove dead styles

* add keys to ListActions

* add helpers to set list embed

* render list embeds

* fix list sharing on web

* make style prop optional in ListCard

* update `@atproto/api` to `0.3.13`
Diffstat (limited to 'src/view/com/lists/ListCard.tsx')
-rw-r--r--src/view/com/lists/ListCard.tsx5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/view/com/lists/ListCard.tsx b/src/view/com/lists/ListCard.tsx
index 0e13ca333..2293dbeca 100644
--- a/src/view/com/lists/ListCard.tsx
+++ b/src/view/com/lists/ListCard.tsx
@@ -1,5 +1,5 @@
 import React from 'react'
-import {StyleSheet, View} from 'react-native'
+import {StyleProp, StyleSheet, View, ViewStyle} from 'react-native'
 import {AtUri, AppBskyGraphDefs, RichText} from '@atproto/api'
 import {Link} from '../util/Link'
 import {Text} from '../util/text/Text'
@@ -16,12 +16,14 @@ export const ListCard = ({
   noBg,
   noBorder,
   renderButton,
+  style,
 }: {
   testID?: string
   list: AppBskyGraphDefs.ListView
   noBg?: boolean
   noBorder?: boolean
   renderButton?: () => JSX.Element
+  style?: StyleProp<ViewStyle>
 }) => {
   const pal = usePalette('default')
   const store = useStores()
@@ -53,6 +55,7 @@ export const ListCard = ({
         pal.border,
         noBorder && styles.outerNoBorder,
         !noBg && pal.view,
+        style,
       ]}
       href={`/profile/${list.creator.did}/lists/${rkey}`}
       title={list.name}