diff options
| author | George Rusu <george@tagg.id> | 2021-05-24 15:24:27 -0700 |
|---|---|---|
| committer | George Rusu <george@tagg.id> | 2021-05-24 15:36:57 -0700 |
| commit | 3f244122f9dfd703804321627c3d8c68111193c9 (patch) | |
| tree | 74f1314b803c01d6877afb162e78f224b9c84e50 /src/components/common | |
| parent | 7f991eef32475165f819dc8b666c5763f0021696 (diff) | |
Fade tags in/out on image click
Diffstat (limited to 'src/components/common')
| -rw-r--r-- | src/components/common/MomentTags.tsx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/components/common/MomentTags.tsx b/src/components/common/MomentTags.tsx index defd4b4b..28942e8a 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]); |
