mirror of https://github.com/tooot-app/app
parent
c94ef1882b
commit
af0756cef2
|
@ -168,6 +168,7 @@
|
||||||
"header": {
|
"header": {
|
||||||
"title": "Draft"
|
"title": "Draft"
|
||||||
},
|
},
|
||||||
|
"warning": "Drafts are only stored locally, and can be lost in unfortunate events. Advise not using drafts for long term storage.",
|
||||||
"content": {
|
"content": {
|
||||||
"accessibilityHint": "Saved draft, tap to edit this draft",
|
"accessibilityHint": "Saved draft, tap to edit this draft",
|
||||||
"textEmpty": "Content empty"
|
"textEmpty": "Content empty"
|
||||||
|
|
|
@ -53,7 +53,6 @@ const ComposeDraftsListRoot: React.FC<Props> = ({ timestamp }) => {
|
||||||
|
|
||||||
const renderItem = useCallback(
|
const renderItem = useCallback(
|
||||||
({ item }: { item: ComposeStateDraft }) => {
|
({ item }: { item: ComposeStateDraft }) => {
|
||||||
console.log('timestamp', item.timestamp)
|
|
||||||
return (
|
return (
|
||||||
<Pressable
|
<Pressable
|
||||||
accessibilityHint={t('content.draftsList.content.accessibilityHint')}
|
accessibilityHint={t('content.draftsList.content.accessibilityHint')}
|
||||||
|
@ -193,6 +192,30 @@ const ComposeDraftsListRoot: React.FC<Props> = ({ timestamp }) => {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
|
<View
|
||||||
|
style={{
|
||||||
|
flexDirection: 'row',
|
||||||
|
alignItems: 'center',
|
||||||
|
marginHorizontal: StyleConstants.Spacing.Global.PagePadding,
|
||||||
|
padding: StyleConstants.Spacing.S,
|
||||||
|
borderColor: colors.border,
|
||||||
|
borderWidth: 1,
|
||||||
|
borderRadius: StyleConstants.Spacing.S
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<Icon
|
||||||
|
name='AlertTriangle'
|
||||||
|
color={colors.secondary}
|
||||||
|
size={StyleConstants.Font.Size.M}
|
||||||
|
style={{ marginRight: StyleConstants.Spacing.S }}
|
||||||
|
/>
|
||||||
|
<CustomText
|
||||||
|
fontStyle='S'
|
||||||
|
style={{ flexShrink: 1, color: colors.secondary }}
|
||||||
|
>
|
||||||
|
{t('content.draftsList.warning')}
|
||||||
|
</CustomText>
|
||||||
|
</View>
|
||||||
<PanGestureHandler enabled={Platform.OS === 'ios'}>
|
<PanGestureHandler enabled={Platform.OS === 'ios'}>
|
||||||
<SwipeListView
|
<SwipeListView
|
||||||
data={instanceDrafts}
|
data={instanceDrafts}
|
||||||
|
|
Loading…
Reference in New Issue