This file contains hidden or 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
| import React, {Component} from 'react'; | |
| import {Elements, CardElement, ElementsConsumer, injectStripe, StripeProvider} from '@stripe/react-stripe-js'; | |
| import {loadStripe} from '@stripe/stripe-js'; | |
| import CheckoutForm from "./CheckoutForm"; | |
| const stripePromise = loadStripe('SECRET'); | |
| const createOptions = () => { | |
| return { | |
| style: { |
This file contains hidden or 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
| var models = require('../models/models.js'); | |
| var express = require('express'); | |
| var router = express.Router(); | |
| /* GET users listing. */ | |
| const addFunc = (type, body, res) => { | |
| console.log('inside the addFunc and type: ', type, ' and body: ', body) | |
| if(type=='store'){ | |
| models.Store.find({name: body.store}) |
This file contains hidden or 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
| import react, {Component} from 'react'; | |
| import styles from '../../styles/molecules/content.module.css'; | |
| import buttonStyle from '../../styles/quarks/button.module.css'; | |
| import axios from 'axios'; | |
| class ContentCRUD extends Component{ | |
| state={ |
This file contains hidden or 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
| var models = require('../models/models.js'); | |
| var express = require('express'); | |
| var router = express.Router(); | |
| /* GET users listing. */ | |
| const addFunc = (type, body, res) => { | |
| console.log('inside the addFunc and type: ', type, ' and body: ', body) | |
| if(type=='store'){ | |
| models.Store.find({name: body.store}) |
This file contains hidden or 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
| var models = require('../models/models.js'); | |
| var express = require('express'); | |
| var router = express.Router(); | |
| /* GET users listing. */ | |
| const addFunc = (type, body, res) => { | |
| console.log('inside the addFunc and type: ', type, ' and body: ', body) | |
| if(type=='store'){ | |
| models.Store.find({name: body.store}, function (err, docs) { |
NewerOlder