Make post composer prompt look less like a search field
This commit is contained in:
@@ -203,7 +203,6 @@ export type MetricEvents = {
|
|||||||
|
|
||||||
'composer:gif:open': {}
|
'composer:gif:open': {}
|
||||||
'composer:gif:select': {}
|
'composer:gif:select': {}
|
||||||
'postComposer:click': {}
|
|
||||||
'composerPrompt:press': {}
|
'composerPrompt:press': {}
|
||||||
'composerPrompt:camera:press': {}
|
'composerPrompt:camera:press': {}
|
||||||
'composerPrompt:gallery:press': {}
|
'composerPrompt:gallery:press': {}
|
||||||
|
|||||||
@@ -171,65 +171,40 @@ export function ComposerPrompt() {
|
|||||||
size={40}
|
size={40}
|
||||||
type={profile.associated?.labeler ? 'labeler' : 'user'}
|
type={profile.associated?.labeler ? 'labeler' : 'user'}
|
||||||
/>
|
/>
|
||||||
<View style={[a.flex_1, a.ml_md, a.flex_row, a.align_center, a.gap_xs]}>
|
<View
|
||||||
<View
|
style={[
|
||||||
|
a.flex_1,
|
||||||
|
a.ml_md,
|
||||||
|
a.flex_row,
|
||||||
|
a.align_center,
|
||||||
|
a.justify_between,
|
||||||
|
{
|
||||||
|
height: 40,
|
||||||
|
},
|
||||||
|
]}>
|
||||||
|
<Text
|
||||||
style={[
|
style={[
|
||||||
a.flex_1,
|
t.atoms.text_contrast_low,
|
||||||
a.flex_row,
|
a.text_md,
|
||||||
a.align_center,
|
|
||||||
a.justify_between,
|
|
||||||
a.px_md,
|
|
||||||
a.rounded_full,
|
|
||||||
t.atoms.bg_contrast_50,
|
|
||||||
{
|
{
|
||||||
height: 40,
|
includeFontPadding: false,
|
||||||
},
|
},
|
||||||
]}>
|
]}>
|
||||||
<Text
|
{_(msg`What's up?`)}
|
||||||
style={[
|
</Text>
|
||||||
t.atoms.text_contrast_low,
|
<View style={[a.flex_row, a.gap_md]}>
|
||||||
a.text_md,
|
{isNative && (
|
||||||
a.pl_xs,
|
|
||||||
{
|
|
||||||
includeFontPadding: false,
|
|
||||||
},
|
|
||||||
]}>
|
|
||||||
{_(msg`What's up?`)}
|
|
||||||
</Text>
|
|
||||||
<View style={[a.flex_row, a.gap_md, a.mr_xs]}>
|
|
||||||
{isNative && (
|
|
||||||
<Button
|
|
||||||
onPress={e => {
|
|
||||||
e.stopPropagation()
|
|
||||||
onPressCamera()
|
|
||||||
}}
|
|
||||||
label={_(msg`Open camera`)}
|
|
||||||
accessibilityHint={_(msg`Opens device camera`)}
|
|
||||||
variant="ghost"
|
|
||||||
shape="round">
|
|
||||||
{({hovered}) => (
|
|
||||||
<CameraIcon
|
|
||||||
size="md"
|
|
||||||
style={{
|
|
||||||
color: hovered
|
|
||||||
? t.palette.primary_500
|
|
||||||
: t.palette.contrast_300,
|
|
||||||
}}
|
|
||||||
/>
|
|
||||||
)}
|
|
||||||
</Button>
|
|
||||||
)}
|
|
||||||
<Button
|
<Button
|
||||||
onPress={e => {
|
onPress={e => {
|
||||||
e.stopPropagation()
|
e.stopPropagation()
|
||||||
onPressImage()
|
onPressCamera()
|
||||||
}}
|
}}
|
||||||
label={_(msg`Add image`)}
|
label={_(msg`Open camera`)}
|
||||||
accessibilityHint={_(msg`Opens image picker`)}
|
accessibilityHint={_(msg`Opens device camera`)}
|
||||||
variant="ghost"
|
variant="ghost"
|
||||||
shape="round">
|
shape="round">
|
||||||
{({hovered}) => (
|
{({hovered}) => (
|
||||||
<ImageIcon
|
<CameraIcon
|
||||||
size="md"
|
size="md"
|
||||||
style={{
|
style={{
|
||||||
color: hovered
|
color: hovered
|
||||||
@@ -239,7 +214,27 @@ export function ComposerPrompt() {
|
|||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
</Button>
|
</Button>
|
||||||
</View>
|
)}
|
||||||
|
<Button
|
||||||
|
onPress={e => {
|
||||||
|
e.stopPropagation()
|
||||||
|
onPressImage()
|
||||||
|
}}
|
||||||
|
label={_(msg`Add image`)}
|
||||||
|
accessibilityHint={_(msg`Opens image picker`)}
|
||||||
|
variant="ghost"
|
||||||
|
shape="round">
|
||||||
|
{({hovered}) => (
|
||||||
|
<ImageIcon
|
||||||
|
size="md"
|
||||||
|
style={{
|
||||||
|
color: hovered
|
||||||
|
? t.palette.primary_500
|
||||||
|
: t.palette.contrast_300,
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
)}
|
||||||
|
</Button>
|
||||||
</View>
|
</View>
|
||||||
</View>
|
</View>
|
||||||
</Pressable>
|
</Pressable>
|
||||||
|
|||||||
Reference in New Issue
Block a user