mirror of
https://github.com/balzack/databag.git
synced 2025-04-23 01:55:17 +00:00
control when editing allowed
This commit is contained in:
parent
6ddb9055c0
commit
b3dc1459ca
@ -7,6 +7,7 @@ export const styles = StyleSheet.create({
|
||||
width: '100%',
|
||||
},
|
||||
topic: {
|
||||
paddingTop: 8,
|
||||
display: 'flex',
|
||||
flexDirection: 'column',
|
||||
width: '100%',
|
||||
|
@ -226,10 +226,10 @@ export function Message({ topic, card, profile, host, select, selected }: { topi
|
||||
)}
|
||||
{ topicId === selected && (
|
||||
<Surface style={styles.options}>
|
||||
{ !locked && (
|
||||
{ !locked && status === 'confirmed' && (
|
||||
<IconButton style={styles.option} loading={false} compact="true" mode="contained" icon="share-variant-outline" size={24} onPress={() => {}} />
|
||||
)}
|
||||
{ !locked && profile && (
|
||||
{ !locked && profile && status === 'confirmed' && (
|
||||
<IconButton style={styles.option} loading={false} compact="true" mode="contained" icon="square-edit-outline" size={24} onPress={edit} />
|
||||
)}
|
||||
{ (host || profile) && (
|
||||
|
Loading…
x
Reference in New Issue
Block a user