Merge remote-tracking branch 'origin/hailey/dialogs-pt1' into hailey/dialogs-pt8
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
import React from 'react'
|
||||
|
||||
import {Button, ButtonProps} from '#/components/Button'
|
||||
import {NormalizedRNGHPressable} from '#/components/NormalizedRNGHPressable'
|
||||
|
||||
export function BottomSheetButton({children, ...rest}: ButtonProps) {
|
||||
return (
|
||||
<Button {...rest} Component={NormalizedRNGHPressable}>
|
||||
{children}
|
||||
</Button>
|
||||
)
|
||||
}
|
||||
@@ -6,7 +6,8 @@ import {useLingui} from '@lingui/react'
|
||||
|
||||
import {getLabelingServiceTitle} from '#/lib/moderation'
|
||||
import {atoms as a, useBreakpoints, useTheme} from '#/alf'
|
||||
import {Button, useButtonContext} from '#/components/Button'
|
||||
import {BottomSheetButton} from '#/components/BottomSheetButton'
|
||||
import {useButtonContext} from '#/components/Button'
|
||||
import {Divider} from '#/components/Divider'
|
||||
import * as LabelingServiceCard from '#/components/LabelingServiceCard'
|
||||
import {Text} from '#/components/Typography'
|
||||
@@ -38,12 +39,12 @@ export function SelectLabelerView({
|
||||
<View style={[a.gap_sm]}>
|
||||
{props.labelers.map(labeler => {
|
||||
return (
|
||||
<Button
|
||||
<BottomSheetButton
|
||||
key={labeler.creator.did}
|
||||
label={_(msg`Send report to ${labeler.creator.displayName}`)}
|
||||
onPress={() => props.onSelectLabeler(labeler.creator.did)}>
|
||||
<LabelerButton labeler={labeler} />
|
||||
</Button>
|
||||
</BottomSheetButton>
|
||||
)
|
||||
})}
|
||||
</View>
|
||||
|
||||
@@ -278,7 +278,7 @@ function AppealForm({
|
||||
? [a.flex_row, a.justify_between]
|
||||
: [{flexDirection: 'column-reverse'}, a.gap_sm]
|
||||
}>
|
||||
<Button
|
||||
<BottomSheetButton
|
||||
testID="backBtn"
|
||||
variant="solid"
|
||||
color="secondary"
|
||||
@@ -286,8 +286,8 @@ function AppealForm({
|
||||
onPress={onPressBack}
|
||||
label={_(msg`Back`)}>
|
||||
<ButtonText>{_(msg`Back`)}</ButtonText>
|
||||
</Button>
|
||||
<Button
|
||||
</BottomSheetButton>
|
||||
<BottomSheetButton
|
||||
testID="submitBtn"
|
||||
variant="solid"
|
||||
color="primary"
|
||||
@@ -296,7 +296,7 @@ function AppealForm({
|
||||
label={_(msg`Submit`)}>
|
||||
<ButtonText>{_(msg`Submit`)}</ButtonText>
|
||||
{isPending && <ButtonIcon icon={Loader} />}
|
||||
</Button>
|
||||
</BottomSheetButton>
|
||||
</View>
|
||||
</>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user