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
| ... | |
| render() { | |
| return ( | |
| <div | |
| className={`${this.props.className | |
| ? this.props.className | |
| : ''} session-status-dropdown`} | |
| ref={dropdownContainer => { | |
| this.dropdownContainer = dropdownContainer; |
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, {FunctionComponent} from 'react'; | |
| import axios, {AxiosResponse} from 'axios'; | |
| import useAxiosFetch | |
| from '../src/components/codecamp/common/hooks/useAxiosFetch'; | |
| import getConfig from 'next/config'; | |
| import App from "../src/App"; | |
| import {Speaker} from "../src/components/codecamp/common/CodeCampInterfaces"; |
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, {FunctionComponent} from 'react'; | |
| import axios, {AxiosResponse} from 'axios'; | |
| import useAxiosFetch | |
| from '../src/components/codecamp/common/hooks/useAxiosFetch'; | |
| import getConfig from 'next/config'; | |
| import App from "../src/App"; | |
| import {Speaker} from "../src/components/codecamp/common/CodeCampInterfaces"; |
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, {FunctionComponent} from 'react'; | |
| import axios, {AxiosResponse} from 'axios'; | |
| import useAxiosFetch | |
| from '../src/components/codecamp/common/hooks/useAxiosFetch'; | |
| import getConfig from 'next/config'; | |
| import App from "../src/App"; | |
| import {Speaker} from "../src/components/codecamp/common/CodeCampInterfaces"; |
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, {FunctionComponent} from 'react'; | |
| interface Props { | |
| errorMessage: string, | |
| children: JSX.Element | |
| } | |
| const ErrorSegment: FunctionComponent<Props> = | |
| ({errorMessage,children}) => { | |
| return ( |
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
| const withCSS = require("@zeit/next-css"); | |
| require('dotenv').config() | |
| const path = require('path') | |
| const Dotenv = require('dotenv-webpack') | |
| const withImages = require('next-images') | |
| module.exports = withCSS(withImages({ | |
| inlineImageLimit: 16384, | |
| webpack(config, options) { |
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
| <Link | |
| href={{ | |
| pathname: "/session", query: | |
| { | |
| sessionSlug: 'cracking-the-product-manager-interview', | |
| sessionId: '7368', | |
| sessionData: { | |
| id: 7368, | |
| junk: 'abcd', | |
| sessionSlug: 'cracking-the-product-manager-interview'} |
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 from 'react' | |
| import Link from 'next/link' | |
| import axios from 'axios' | |
| export default class Index extends React.Component { | |
| constructor(props) { | |
| super(props); | |
| console.log("Index:constructor called"); | |
| this.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
| const { createServer } = require("http"); | |
| const next = require("next"); | |
| const routes = require("./routes"); | |
| const { parse } = require("url"); | |
| const port = parseInt(process.env.PORT, 10) || 3000; | |
| const dev = process.env.NODE_ENV !== "production"; | |
| const app = next({ dev }); | |
| const handler = routes.getRequestHandler(app); |
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 SpeakersHeader from './SpeakersHeader'; | |
| import SpeakerList from './SpeakerList'; | |
| import axios from "axios"; | |
| class Speakers extends Component { | |
| constructor(props) { | |
| super(props); | |
| this.state = { |