mirror of
https://github.com/hazemKrimi/crimson-quirks-ui.git
synced 2026-05-01 18:20:28 +00:00
Remove stripe config
This commit is contained in:
@@ -9,8 +9,6 @@ import {
|
||||
} from '@apollo/client';
|
||||
import { WebSocketLink } from '@apollo/client/link/ws';
|
||||
import { getMainDefinition } from '@apollo/client/utilities';
|
||||
import { Elements } from '@stripe/react-stripe-js';
|
||||
import { loadStripe } from '@stripe/stripe-js';
|
||||
import { setContext } from '@apollo/client/link/context';
|
||||
import { ThemeProvider } from 'styled-components';
|
||||
import { BrowserRouter } from 'react-router-dom';
|
||||
@@ -19,8 +17,6 @@ import App from './App';
|
||||
import GlobalStyles from './GlobalStyles';
|
||||
import reportWebVitals from './reportWebVitals';
|
||||
|
||||
const stripePromise = loadStripe('pk_test_TYooMQauvdEDq54NiTphI7jx');
|
||||
|
||||
const httpLinkMain = createHttpLink({
|
||||
uri: process.env.REACT_APP_GRAPHQL_API,
|
||||
});
|
||||
@@ -71,7 +67,6 @@ export const clientSupport = new ApolloClient({
|
||||
|
||||
ReactDOM.render(
|
||||
<React.StrictMode>
|
||||
<Elements stripe={stripePromise}>
|
||||
<ApolloProvider client={clientMain}>
|
||||
<ThemeProvider theme={theme}>
|
||||
<BrowserRouter>
|
||||
@@ -80,7 +75,6 @@ ReactDOM.render(
|
||||
</BrowserRouter>
|
||||
</ThemeProvider>
|
||||
</ApolloProvider>
|
||||
</Elements>
|
||||
</React.StrictMode>,
|
||||
document.getElementById('root')
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user