-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pay with Business accounts #797
Merged
Merged
Changes from all commits
Commits
Show all changes
43 commits
Select commit
Hold shift + click to select a range
3f8dd3a
start business accounts ui payment methods
OmerGery 53a46a6
wip
OmerGery 52a750a
wip service estimation adapt
OmerGery 4130ede
fix
OmerGery 81e5c2d
add skelton. fix service estimation interval. hide business payment m…
OmerGery d447b80
show business tab only if at least 1 buiz payment method
OmerGery 05e9076
display BA name in ride history and active
OmerGery c3089f5
add name of BA to future ride
OmerGery c4ba270
checkmark to the right
OmerGery 509034e
style fix
OmerGery cf14a37
add mixpanels
OmerGery c2d94b9
update BA svg, add subtitle to BA payment card
OmerGery ac5be57
add subtitle
OmerGery 59b9169
clean business account state
OmerGery 967301a
Update styled.js
OmerGery d5b9e4d
Update index.tsx
OmerGery 056ef46
extract to styled files @ormiz
OmerGery 446eede
on submit AUT-18223 fix
OmerGery f7caae6
fix AUT-18227
OmerGery 6dc4812
Update index.tsx
OmerGery 5895bbf
add empty state for services and choose payment
OmerGery b50f5f2
always allow offline for BA
OmerGery dd22a5a
new logic of storing last BA
OmerGery a382c34
Merge branch 'master' into AUT-15088-business-accounts
OmerGery 56aaae0
fixes
OmerGery b2d1db9
tabs not scrollable
OmerGery c606538
Update index.tsx
OmerGery 2769430
remove Montserrat
OmerGery f42d74b
Update index.tsx
OmerGery 05aa179
Revert "remove Montserrat"
OmerGery 5801037
inter
OmerGery f312404
remove reason from business pay
OmerGery bc6dbc6
fix chosen method
OmerGery 61554a9
fix add payment , rm BA id
OmerGery 7cbc51d
fix for delete from BA
OmerGery 61021d5
Update index.tsx
OmerGery 6c0bdc9
fix active tab
OmerGery 7505e92
cr
OmerGery cdb8558
cr2
OmerGery 6dc5c8b
cr them context
OmerGery 4b6b38c
CR styled
OmerGery cf64a87
fix flex
OmerGery 8e4f6b5
fix div width of payment metod title
OmerGery File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
examples/client/Locomotion/src/Components/BusinessAccountText/index.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import React from 'react'; | ||
import { BoldTitle, SubTitle, TitleWithSubTitle } from './styled'; | ||
|
||
interface BusinessAccountTextProps { | ||
title: string; | ||
subTitle: string; | ||
} | ||
const BusinessAccountText = ({ | ||
title, subTitle, | ||
} : BusinessAccountTextProps) => ( | ||
<TitleWithSubTitle> | ||
<BoldTitle numberOfLines={1}>{title}</BoldTitle> | ||
<SubTitle numberOfLines={1}>{subTitle}</SubTitle> | ||
</TitleWithSubTitle> | ||
); | ||
|
||
export default BusinessAccountText; |
22 changes: 22 additions & 0 deletions
22
examples/client/Locomotion/src/Components/BusinessAccountText/styled.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { Text, View } from 'react-native'; | ||
import styled from 'styled-components'; | ||
import { FONT_SIZES, FONT_WEIGHTS } from '../../context/theme'; | ||
|
||
export const TitleWithSubTitle = styled(View)` | ||
display: flex; | ||
flex-direction: column; | ||
flex: 1 0 0; | ||
`; | ||
export const BaseText = styled(Text)` | ||
color: #212229; | ||
${FONT_SIZES.LARGE}; | ||
font-family: Inter; | ||
font-style: normal; | ||
line-height: 20px; | ||
`; | ||
export const SubTitle = styled(BaseText)` | ||
font-weight: 500; | ||
`; | ||
export const BoldTitle = styled(BaseText)` | ||
font-weight: 700; | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
examples/client/Locomotion/src/Components/EmptyState/index.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import React from 'react'; | ||
import { | ||
Container, Description, Title, TitleWithoutDescription, | ||
} from './styled'; | ||
|
||
interface EmptyStateProps { | ||
title: string; | ||
description?: string; | ||
} | ||
const EmptyState = ({ | ||
title, | ||
description, | ||
}: EmptyStateProps) => ( | ||
<Container> | ||
{description | ||
? <Title>{title}</Title> | ||
: <TitleWithoutDescription>{title}</TitleWithoutDescription> | ||
} | ||
|
||
{description ? <Description>{description}</Description> : null} | ||
</Container> | ||
); | ||
EmptyState.defaultProps = { | ||
description: '', | ||
}; | ||
export default EmptyState; |
40 changes: 40 additions & 0 deletions
40
examples/client/Locomotion/src/Components/EmptyState/styled.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
import { Text, View } from 'react-native'; | ||
import styled from 'styled-components'; | ||
import { FONT_SIZES, FONT_WEIGHTS } from '../../context/theme'; | ||
|
||
export const Container = styled(View)` | ||
border-radius: 8px; | ||
border: 1px dashed rgba(125, 139, 172, 0.32); | ||
display: flex; | ||
padding: 16px; | ||
flex-direction: column; | ||
justify-content: center; | ||
align-items: center; | ||
margin: 4px; | ||
flex: 1 0 0; | ||
align-self: stretch; | ||
`; | ||
export const Title = styled(Text)` | ||
align-self: stretch; | ||
color: #212229; | ||
text-align: center; | ||
${FONT_WEIGHTS.REGULAR}; | ||
${FONT_SIZES.LARGE}; | ||
font-weight: 600; | ||
`; | ||
export const Description = styled(Text)` | ||
align-self: stretch; | ||
color: #666975; | ||
text-align: center; | ||
${FONT_WEIGHTS.REGULAR}; | ||
${FONT_SIZES.LARGE}; | ||
font-weight: 400; | ||
`; | ||
export const TitleWithoutDescription = styled(Text)` | ||
align-self: stretch; | ||
color: #666975; | ||
text-align: center; | ||
${FONT_WEIGHTS.REGULAR}; | ||
${FONT_SIZES.LARGE}; | ||
font-weight: 500; | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why it needs custom style? you may use flex to place it right