Skip to content
This repository has been archived by the owner on Dec 2, 2024. It is now read-only.

Commit

Permalink
Remove payment and testing modules (#548)
Browse files Browse the repository at this point in the history
  • Loading branch information
byn9826 authored Sep 14, 2024
1 parent 1016249 commit 29105ac
Show file tree
Hide file tree
Showing 179 changed files with 11,061 additions and 47,934 deletions.
34 changes: 0 additions & 34 deletions .env.test

This file was deleted.

2 changes: 0 additions & 2 deletions client/.env.example
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
REACT_APP_SERVER_HOST=127.0.0.1:3100
REACT_APP_SERVER_TYPE=http
REACT_APP_PAYPAL_CLIENT_ID=AdV5sgSGr6O32TAxyw5RGw8qsA9fBrVuEUNz_sz5v5xgO8uKp6JlRUAboU28xUbhA27XWVT-qLXp-t_I
REACT_APP_CONTACT_EMAIL=[email protected]
REACT_APP_IS_MAINTAINING=false
GENERATE_SOURCEMAP=false
3 changes: 0 additions & 3 deletions client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"private": true,
"dependencies": {
"@heroicons/react": "^2.0.12",
"@paypal/react-paypal-js": "^7.8.1",
"@reduxjs/toolkit": "^1.8.6",
"@shared/constants": "*",
"@shared/helpers": "*",
Expand All @@ -25,8 +24,6 @@
},
"devDependencies": {
"@shared/interfaces": "*",
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^13.4.0",
"@types/node": "^16.11.26",
"@types/react": "^17.0.39",
"@types/react-datepicker": "^4.3.4",
Expand Down
78 changes: 0 additions & 78 deletions client/src/actions/general.test.ts

This file was deleted.

34 changes: 0 additions & 34 deletions client/src/actions/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -233,37 +233,3 @@ export const activateUser = createAsyncThunk(
}
},
)

export const createUserPayment = createAsyncThunk(
'user/createUserPayment',
async ({
orderId,
planType,
stateCode,
provinceCode,
}: {
orderId: string;
planType: number;
stateCode: string;
provinceCode: string;
}, { rejectWithValue, dispatch }) => {
const endpoint = `${routerEnum.Endpoint.Users}/payment`
await dispatch(refreshAccessToken())

try {
const userToken: interfaces.response.UserToken = await requestAdapter.sendPostRequest(endpoint, {
orderId,
planType,
stateCode,
provinceCode,
})
return {
userToken,
planType,
msg: localeTool.t('setting.subscribeSucceed'),
}
} catch (e) {
return rejectWithValue(e)
}
},
)
181 changes: 0 additions & 181 deletions client/src/adapters/request.test.ts

This file was deleted.

27 changes: 0 additions & 27 deletions client/src/adapters/storage.test.ts

This file was deleted.

Loading

0 comments on commit 29105ac

Please sign in to comment.