Skip to content

Instantly share code, notes, and snippets.

View colevoss's full-sized avatar

Cole Voss colevoss

View GitHub Profile
@colevoss
colevoss / HudlModalBetaDocs.md
Last active July 24, 2017 18:51
Docs for a beta Hudl Modal

Modal

An modal dialog displayed above an obscuring overlay.

Example

Sandbox

Basic Usage:

<Modal
@colevoss
colevoss / select_basic_usage.jsx
Last active September 21, 2017 16:30
Select Usages
import React from 'react';
import { Select } from 'uniform';
const selectOptions = [
{ label: 'Luke Sywalker', value: 'lukeSkywalker' },
{ label: 'Han Solo', value: 'hanSolo' },
{ label: 'Jar Jar Binks', value: 'jarJarBinks'},
];
class SomeForm extends React.Component {
@colevoss
colevoss / async-select-options.jsx
Created September 21, 2017 16:44
Async Select Options
import React from 'react';
import { Select } from 'uniform';
class SomeForm extends React.Component {
constructor(props) {
super(props);
this.state = {
favStarwarsCharacter: null,
isLoadingOptions: false,
@colevoss
colevoss / character-option.jsx
Last active September 21, 2017 16:45
Select With Custom Option Components
const CharacterOption = ({ value, data, onSelect }) => {
return (
<div onClick={() => onSelect(value)}>
<div className="char-avatar">
<img src={data.avatar} />
</div>
<div className="char-name">
{data.firstName} {data.lastName}
</div>
@colevoss
colevoss / Docs.md
Last active March 22, 2018 16:36
Example schema for photos to web

version int

When a published project is updated, this will be incremented

companyCamCollectionId int

Reference to the collection in CompanyCam's database for various API purposes

title string

Title of the project

description string

@colevoss
colevoss / TEST.md
Last active May 25, 2018 17:40
TEST
@colevoss
colevoss / test-template.md
Last active January 9, 2019 16:19
A Pr Template

Description:

Describe what the PR changes

Before:

(If applicable) Pic, GIF, or other illustration of issue before the PR

After:

(If applicable) Pic, GIF, or other illustration of issue or feature that this PR implements