replace chevron with arrow
This commit is contained in:
@@ -19,7 +19,7 @@ import {
|
|||||||
} from '#/alf'
|
} from '#/alf'
|
||||||
import {leading} from '#/alf/typography'
|
import {leading} from '#/alf/typography'
|
||||||
import {Button, ButtonIcon, ButtonText} from '#/components/Button'
|
import {Button, ButtonIcon, ButtonText} from '#/components/Button'
|
||||||
import {ChevronLeft_Stroke2_Corner0_Rounded as ChevronLeft} from '#/components/icons/Chevron'
|
import {ArrowLeft_Stroke2_Corner0_Rounded as ArrowLeft} from '#/components/icons/Arrow'
|
||||||
import {createPortalGroup} from '#/components/Portal'
|
import {createPortalGroup} from '#/components/Portal'
|
||||||
import {P, Text} from '#/components/Typography'
|
import {P, Text} from '#/components/Typography'
|
||||||
|
|
||||||
@@ -95,14 +95,14 @@ export function Layout({children}: React.PropsWithChildren<{}>) {
|
|||||||
<View style={[a.w_full, a.align_start, {maxWidth: COL_WIDTH}]}>
|
<View style={[a.w_full, a.align_start, {maxWidth: COL_WIDTH}]}>
|
||||||
<Button
|
<Button
|
||||||
key={state.activeStep} // remove focus state on nav
|
key={state.activeStep} // remove focus state on nav
|
||||||
variant="ghost"
|
|
||||||
color="secondary"
|
color="secondary"
|
||||||
|
variant="ghost"
|
||||||
|
shape="square"
|
||||||
size="small"
|
size="small"
|
||||||
shape="round"
|
|
||||||
label={_(msg`Go back to previous step`)}
|
label={_(msg`Go back to previous step`)}
|
||||||
style={[a.absolute]}
|
style={[a.absolute]}
|
||||||
onPress={() => dispatch({type: 'prev'})}>
|
onPress={() => dispatch({type: 'prev'})}>
|
||||||
<ButtonIcon icon={ChevronLeft} />
|
<ButtonIcon icon={ArrowLeft} size="lg" />
|
||||||
</Button>
|
</Button>
|
||||||
</View>
|
</View>
|
||||||
</View>
|
</View>
|
||||||
@@ -185,22 +185,22 @@ export function Layout({children}: React.PropsWithChildren<{}>) {
|
|||||||
style={[
|
style={[
|
||||||
a.w_full,
|
a.w_full,
|
||||||
{maxWidth: COL_WIDTH},
|
{maxWidth: COL_WIDTH},
|
||||||
gtMobile && [a.flex_row, a.justify_between],
|
gtMobile && [a.flex_row, a.justify_between, a.align_center],
|
||||||
]}>
|
]}>
|
||||||
{gtMobile &&
|
{gtMobile &&
|
||||||
(state.hasPrev ? (
|
(state.hasPrev ? (
|
||||||
<Button
|
<Button
|
||||||
key={state.activeStep} // remove focus state on nav
|
key={state.activeStep} // remove focus state on nav
|
||||||
variant="solid"
|
|
||||||
color="secondary"
|
color="secondary"
|
||||||
size="large"
|
variant="ghost"
|
||||||
shape="round"
|
shape="square"
|
||||||
|
size="small"
|
||||||
label={_(msg`Go back to previous step`)}
|
label={_(msg`Go back to previous step`)}
|
||||||
onPress={() => dispatch({type: 'prev'})}>
|
onPress={() => dispatch({type: 'prev'})}>
|
||||||
<ButtonIcon icon={ChevronLeft} />
|
<ButtonIcon icon={ArrowLeft} size="lg" />
|
||||||
</Button>
|
</Button>
|
||||||
) : (
|
) : (
|
||||||
<View style={{height: 54}} />
|
<View style={{height: 33}} />
|
||||||
))}
|
))}
|
||||||
<OnboardingControls.Outlet />
|
<OnboardingControls.Outlet />
|
||||||
</View>
|
</View>
|
||||||
|
|||||||
Reference in New Issue
Block a user