Skip to content

Commit

Permalink
Update Checkout.tsx and fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
aelassas committed Apr 26, 2024
1 parent 6a60511 commit 068ca1a
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 13 deletions.
8 changes: 4 additions & 4 deletions .easignore
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,10 @@ dist/
!google-services.json
!/**/google-services.json

!/bookcars-types/index.js
!/bookcars-types/index.d.ts
!/bookcars-helper/index.js
!/bookcars-helper/index.d.ts
!/movinin-types/index.js
!/movinin-types/index.d.ts
!/movinin-helper/index.js
!/movinin-helper/index.d.ts

# @end expo-cli

Expand Down
2 changes: 1 addition & 1 deletion api/src/controllers/userController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const getStatusMessage = (lang: string, msg: string): string => `<!DOCTYPE html>
* @async
* @param {Request} req
* @param {Response} res
* @param {bookcarsTypes.UserType} userType
* @param {movininTypes.UserType} userType
* @returns {unknown}
*/
const _signup = async (req: Request, res: Response, userType: movininTypes.UserType) => {
Expand Down
4 changes: 2 additions & 2 deletions backend/craco.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ module.exports = {
],
webpack: {
alias: {
':bookcars-types': path.resolve(__dirname, '../packages/bookcars-types'),
':bookcars-helper': path.resolve(__dirname, '../packages/bookcars-helper'),
':movinin-types': path.resolve(__dirname, '../packages/movinin-types'),
':movinin-helper': path.resolve(__dirname, '../packages/movinin-helper'),
':disable-react-devtools': path.resolve(__dirname, '../packages/disable-react-devtools'),
},
},
Expand Down
4 changes: 2 additions & 2 deletions frontend/craco.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ module.exports = {
],
webpack: {
alias: {
':bookcars-types': path.resolve(__dirname, '../packages/bookcars-types'),
':bookcars-helper': path.resolve(__dirname, '../packages/bookcars-helper'),
':movinin-types': path.resolve(__dirname, '../packages/movinin-types'),
':movinin-helper': path.resolve(__dirname, '../packages/movinin-helper'),
':disable-react-devtools': path.resolve(__dirname, '../packages/disable-react-devtools'),
},
},
Expand Down
4 changes: 2 additions & 2 deletions frontend/public/manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"short_name": "BookCars",
"name": "BookCars",
"short_name": "Movin' In",
"name": "Movin' In",
"icons": [
{
"src": "favicon.ico",
Expand Down
4 changes: 2 additions & 2 deletions mobile/screens/Checkout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ const CheckoutScreen = ({ navigation, route }: NativeStackScreenProps<StackParam
// Must be a supported currency: https://docs.stripe.com/currencies
currency: currency === '$' ? 'usd' : currency === '€' ? 'eur' : '',
receiptEmail: (!authenticated ? renter?.email : user?.email) as string,
description: 'BookCars Mobile Service',
description: "Movin' In Mobile Service",
customerName: (!authenticated ? renter?.fullName : user?.fullName) as string,
}

Expand All @@ -440,7 +440,7 @@ const CheckoutScreen = ({ navigation, route }: NativeStackScreenProps<StackParam
const { error: initPaymentSheetError } = await initPaymentSheet({
customerId,
paymentIntentClientSecret: clientSecret,
merchantDisplayName: 'BookCars',
merchantDisplayName: "Movin' In",
})
if (initPaymentSheetError) {
console.log(initPaymentSheetError)
Expand Down

0 comments on commit 068ca1a

Please sign in to comment.