This file contains 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
const questions = [ | |
{ | |
id: 0, | |
question: "What is your name?", | |
value: "" | |
}, | |
{ | |
id: 1, | |
question: "What is your dog's name?", | |
value: "" |
This file contains 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'; | |
class App extends Component { | |
state = { | |
questions: this.props.questions, | |
showState: false, | |
}; | |
handleChange = id => e => { |
This file contains 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'; | |
class App extends Component { | |
render() { | |
return ( | |
<div className='App'> | |
<form> | |
<button type="submit">Submit</button> | |
</form> |
This file contains 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'; | |
class App extends Component { | |
state = { | |
inputs: [], | |
showState: false | |
}; | |
handleSubmit = (event) => { | |
event.preventDefault(); |
This file contains 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'; | |
class App extends Component { | |
state = { | |
inputs: [], | |
showState: false | |
}; | |
handleSubmit = (event) => { | |
event.preventDefault(); |
This file contains 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 './step-list.module.scss'; | |
class StepList extends Component { | |
steps = [ | |
{ key: 0, title: 'Overview' }, | |
{ key: 1, title: 'Dates' }, | |
{ key: 2, title: 'Add Seminars' }, | |
{ key: 3, title: 'Upload an image' }, | |
{ key: 4, title: 'Preview' } |
This file contains 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 { ApolloError } from 'apollo-server'; | |
import jwt from 'jsonwebtoken'; | |
import ConferenceModel from '../models/conference'; | |
import SubeventModel from '../models/subevent'; | |
import uploadImage from '../utils/image-upload'; | |
export default { | |
Mutation: { | |
async createConference(roots, args, context) { | |
const { token } = context; |
This file contains 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
/** Fetch all conferences */ | |
let selectConferencesQuery; | |
try { | |
selectConferencesQuery = await query( | |
'SELECT id, name, description, dates, tags, image FROM conferences' | |
); | |
} catch (e) {} | |
/** Fetch the count of subevents related to a conference */ | |
const conferenceIds = selectConferencesQuery.results.map( |
This file contains 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 from 'react'; | |
import { Navbar } from 'shared/components'; | |
import { Query } from 'react-apollo'; | |
import gql from 'graphql-tag'; | |
const Home = () => { | |
return ( | |
<> | |
<Navbar isAuthenticated={true} /> | |
<div className="container"> |
This file contains 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 UIKit | |
extension UIView { | |
/* Usage Example | |
* bgView.addBottomRoundedEdge(desiredCurve: 1.5) | |
*/ | |
func addBottomRoundedEdge(desiredCurve: CGFloat?) { |
OlderNewer