diff options
author | Samuel Newman <mozzius@protonmail.com> | 2025-05-06 17:34:50 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-05-06 07:34:50 -0700 |
commit | 25f8506c4152840e83ba9210452b60ea5cc0987f (patch) | |
tree | c319b601601b43fc6c0d2b464f1bd260ebcda481 /src/view/com/posts/ShowLessFollowup.tsx | |
parent | 04dc6dc9ca3cdc747004367982313fd8bc157507 (diff) | |
download | voidsky-25f8506c4152840e83ba9210452b60ea5cc0987f.tar.zst |
Remove post from feed after pressing show less (#8333)
* remove post from feed after pressing show less * fix text overflow on android * move state up so it won't get recycled away * make type optional
Diffstat (limited to 'src/view/com/posts/ShowLessFollowup.tsx')
-rw-r--r-- | src/view/com/posts/ShowLessFollowup.tsx | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/src/view/com/posts/ShowLessFollowup.tsx b/src/view/com/posts/ShowLessFollowup.tsx new file mode 100644 index 000000000..01412b9a1 --- /dev/null +++ b/src/view/com/posts/ShowLessFollowup.tsx @@ -0,0 +1,46 @@ +import {View} from 'react-native' +import {Trans} from '@lingui/macro' + +import {atoms as a, useTheme} from '#/alf' +import {CircleCheck_Stroke2_Corner0_Rounded} from '#/components/icons/CircleCheck' +import {Text} from '#/components/Typography' + +export function ShowLessFollowup() { + const t = useTheme() + return ( + <View + style={[ + t.atoms.border_contrast_low, + a.border_t, + t.atoms.bg_contrast_25, + a.p_sm, + ]}> + <View + style={[ + t.atoms.bg, + t.atoms.border_contrast_low, + a.border, + a.rounded_sm, + a.p_md, + a.flex_row, + a.gap_sm, + ]}> + <CircleCheck_Stroke2_Corner0_Rounded + style={[t.atoms.text_contrast_low]} + size="sm" + /> + <Text + style={[ + a.flex_1, + a.text_sm, + t.atoms.text_contrast_medium, + a.leading_snug, + ]}> + <Trans> + Thank you for your feedback! It has been sent to the feed operator. + </Trans> + </Text> + </View> + </View> + ) +} |