replace all buttons with BottomSheetButton
This commit is contained in:
@@ -10,7 +10,8 @@ import {useAgent} from '#/state/session'
|
||||
import {CharProgress} from '#/view/com/composer/char-progress/CharProgress'
|
||||
import * as Toast from '#/view/com/util/Toast'
|
||||
import {atoms as a, native, useTheme} from '#/alf'
|
||||
import {Button, ButtonIcon, ButtonText} from '#/components/Button'
|
||||
import {BottomSheetButton} from '#/components/BottomSheetButton'
|
||||
import {ButtonIcon, ButtonText} from '#/components/Button'
|
||||
import * as Dialog from '#/components/Dialog'
|
||||
import * as Toggle from '#/components/forms/Toggle'
|
||||
import {Check_Stroke2_Corner0_Rounded as Check} from '#/components/icons/Check'
|
||||
@@ -100,7 +101,7 @@ export function SubmitView({
|
||||
|
||||
return (
|
||||
<View style={[a.gap_2xl]}>
|
||||
<Button
|
||||
<BottomSheetButton
|
||||
size="small"
|
||||
variant="solid"
|
||||
color="secondary"
|
||||
@@ -108,7 +109,7 @@ export function SubmitView({
|
||||
label={_(msg`Go back to previous step`)}
|
||||
onPress={goBack}>
|
||||
<ButtonIcon icon={ChevronLeft} />
|
||||
</Button>
|
||||
</BottomSheetButton>
|
||||
|
||||
<View
|
||||
style={[
|
||||
@@ -211,7 +212,7 @@ export function SubmitView({
|
||||
</Text>
|
||||
))}
|
||||
|
||||
<Button
|
||||
<BottomSheetButton
|
||||
testID="sendReportBtn"
|
||||
size="large"
|
||||
variant="solid"
|
||||
@@ -223,7 +224,7 @@ export function SubmitView({
|
||||
<Trans>Send report</Trans>
|
||||
</ButtonText>
|
||||
{submitting && <ButtonIcon icon={Loader} />}
|
||||
</Button>
|
||||
</BottomSheetButton>
|
||||
</View>
|
||||
</View>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user