🔧 Remove some tipsi-stripe stuff

Bump dev deps
This commit is contained in:
nikolark committed 2022-07-31 20:35:40 +02:00
1 parent c1867dcac9
commit b4272e6b9a
6 files changed
+1960 -1071

No files matched your search

-1
View File
@@ -3,4 +3,3 @@ DUSKEN_API_URL=https://galtinn.neuf.no
DUSKEN_FORGOT_PASSWORD_URL=https://galtinn.neuf.no/auth/password_reset/
SENTRY_DSN=
STRIPE_PUBLISHABLE_KEY=
SLACK_URL=
+1
View File
@@ -1,6 +1,7 @@
import { AppRegistry } from 'react-native';
import * as Sentry from '@sentry/react-native';
import Config from 'react-native-config';
import App from './src/App';
import { name as appName } from './app.json';
+14 -14
View File
@@ -48,24 +48,24 @@
"tipsi-stripe": "^7.5.0"
},
"devDependencies": {
"@babel/core": "^7.15.5",
"@babel/eslint-parser": "^7.15.7",
"@babel/preset-env": "^7.15.6",
"@babel/runtime": "^7.15.4",
"babel-jest": "^27.2.2",
"@babel/core": "^7.18.9",
"@babel/eslint-parser": "^7.18.9",
"@babel/preset-env": "^7.18.9",
"@babel/runtime": "^7.18.9",
"babel-jest": "^27.5.1",
"eslint": "^7.32.0",
"eslint-config-airbnb": "^18.2.1",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-import": "^2.24.2",
"eslint-plugin-jest": "^24.4.2",
"eslint-plugin-jsx-a11y": "^6.4.1",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-react": "^7.26.0",
"eslint-plugin-react-hooks": "^4.2.0",
"jest": "^27.2.2",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-jest": "^24.7.0",
"eslint-plugin-jsx-a11y": "^6.6.1",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-react": "^7.30.1",
"eslint-plugin-react-hooks": "^4.6.0",
"jest": "^27.5.1",
"jest-fetch-mock": "^3.0.3",
"metro-react-native-babel-preset": "^0.66.2",
"prettier": "^2.4.1",
"prettier": "^2.7.1",
"react-dom": "^17.0.2",
"react-test-renderer": "^17.0.2"
}
+14 -11
View File
@@ -3,6 +3,7 @@ import { Provider } from 'react-redux';
import { PersistGate } from 'redux-persist/integration/react';
import Config from 'react-native-config';
import { ApolloClient, HttpLink, InMemoryCache, ApolloProvider } from '@apollo/client';
// import { StripeProvider } from '@stripe/stripe-react-native';
import Dusken from './Dusken';
import { store, persistor } from './reduxStore';
@@ -12,14 +13,16 @@ const apolloClient = new ApolloClient({
cache: new InMemoryCache(),
});
export default function App() {
return (
<Provider store={store}>
<PersistGate loading={null} persistor={persistor}>
<ApolloProvider client={apolloClient}>
<Dusken />
</ApolloProvider>
</PersistGate>
</Provider>
);
}
const App = (
// <StripeProvider publishableKey={Config.STRIPE_PUBLISHABLE_KEY || ''}>
<Provider store={store}>
<PersistGate loading={null} persistor={persistor}>
<ApolloProvider client={apolloClient}>
<Dusken />
</ApolloProvider>
</PersistGate>
</Provider>
// </StripeProvider>
);
export default App;
-7
View File
@@ -1,16 +1,9 @@
import { useEffect } from 'react';
import { useDispatch, useSelector } from 'react-redux';
// import stripe from 'tipsi-stripe';
import Config from 'react-native-config';
import { gql, useQuery } from '@apollo/client';
import { requestMembershipCharge } from '../../api';
// TODO: switch to official stripe client
// stripe.setOptions({
// publishableKey: Config.STRIPE_PUBLISHABLE_KEY || '',
// });
const PROOF_QUERY = gql`
{
membershipTypes(isDefault: true) {
+1931 -1038
View File
File diff suppressed because it is too large. Load diff