aboutsummaryrefslogtreecommitdiff
path: root/src/components/common
diff options
context:
space:
mode:
authorGeorge Rusu <george@tagg.id>2021-05-24 15:24:27 -0700
committerGeorge Rusu <george@tagg.id>2021-05-24 15:24:27 -0700
commiteebb463c49136395643d47b2b8597341cda4cbd8 (patch)
tree015b0b74d23058bffc7be038f3263aa5d2955af1 /src/components/common
parent5afdf9208fd3d7498a2595797e6c9fb5f567fc61 (diff)
Fade tags in/out on image click
Diffstat (limited to 'src/components/common')
-rw-r--r--src/components/common/MomentTags.tsx2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/components/common/MomentTags.tsx b/src/components/common/MomentTags.tsx
index 04b0558b..8c91db4a 100644
--- a/src/components/common/MomentTags.tsx
+++ b/src/components/common/MomentTags.tsx
@@ -8,6 +8,7 @@ interface MomentTagsProps {
tags: MomentTagType[];
imageRef: MutableRefObject<null>;
deleteFromList?: (user: ProfilePreviewType) => void;
+ onPress?: () => void;
}
const MomentTags: React.FC<MomentTagsProps> = ({
@@ -15,6 +16,7 @@ const MomentTags: React.FC<MomentTagsProps> = ({
tags,
imageRef,
deleteFromList,
+ onPress,
}) => {
const [offset, setOffset] = useState([0, 0]);
const [curStart, setCurStart] = useState([0, 0]);