Skip to content

Commit

Permalink
Make New transfer button full width on mobile (#496)
Browse files Browse the repository at this point in the history
Closes FRONT-797
  • Loading branch information
bloodyowl authored Dec 13, 2023
1 parent 61b82c8 commit 1d48e95
Showing 1 changed file with 25 additions and 12 deletions.
37 changes: 25 additions & 12 deletions clients/banking/src/pages/TransferPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ const styles = StyleSheet.create({
paddingTop: 40,
paddingHorizontal: 40,
},
buttonContainer: {
flexDirection: "row",
justifyContent: "flex-end",
alignItems: "center",
},
});

type Props = {
Expand All @@ -46,19 +51,27 @@ export const TransferPage = ({
{({ small }) => (
<>
{transferCreationVisible ? (
<Box
direction="row"
justifyContent="end"
style={small ? styles.container : styles.containerDesktop}
>
<LakeButton
onPress={() => Router.push("AccountPaymentsNew", { accountMembershipId })}
icon="add-circle-filled"
size="small"
color="current"
<Box direction="row">
<ResponsiveContainer
breakpoint={breakpoints.small}
style={[
styles.buttonContainer,
commonStyles.fill,
small ? styles.container : styles.containerDesktop,
]}
>
{t("transfer.newTransfer")}
</LakeButton>
{({ small }) => (
<LakeButton
grow={small}
onPress={() => Router.push("AccountPaymentsNew", { accountMembershipId })}
icon="add-circle-filled"
size="small"
color="current"
>
{t("transfer.newTransfer")}
</LakeButton>
)}
</ResponsiveContainer>
</Box>
) : null}

Expand Down

0 comments on commit 1d48e95

Please sign in to comment.