Skip to content

Commit

Permalink
Merged PR 35641: Zorg dat chat menu items volledige breedte gebruiken
Browse files Browse the repository at this point in the history
Related work items: #129943
  • Loading branch information
frankfe-amsterdam committed Nov 6, 2024
2 parents 1196eab + 40efccf commit 6fb5426
Showing 1 changed file with 16 additions and 13 deletions.
29 changes: 16 additions & 13 deletions src/modules/chat/components/ChatMenuItem.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import {Pressable} from '@/components/ui/buttons/Pressable'
import {Box} from '@/components/ui/containers/Box'
import {Size} from '@/components/ui/layout/Size'
import {Phrase} from '@/components/ui/text/Phrase'
import {type TestProps} from '@/components/ui/types'
import {type Theme} from '@/themes/themes'
Expand All @@ -11,17 +12,19 @@ type Props = {
} & TestProps

export const ChatMenuItem = ({onPress, testID, label, color}: Props) => (
<Pressable
onPress={onPress}
testID={testID}>
<Box
insetHorizontal="md"
insetVertical="sm">
<Phrase
color={color}
testID={`${testID}Phrase`}>
{label}
</Phrase>
</Box>
</Pressable>
<Size width={'100%'}>
<Pressable
onPress={onPress}
testID={testID}>
<Box
insetHorizontal="md"
insetVertical="sm">
<Phrase
color={color}
testID={`${testID}Phrase`}>
{label}
</Phrase>
</Box>
</Pressable>
</Size>
)

0 comments on commit 6fb5426

Please sign in to comment.