One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
When contributing to this repository, please first discuss the change you wish to make via issue, email, or any other method with the owners of this repository before making a change.
Please note we have a code of conduct, please follow it in all your interactions with the project.
const Joi = require("joi"); | |
const nanoid = require("nanoid"); | |
const value = { | |
documents: [ | |
{ | |
type: "PAN_CARD", | |
number: nanoid(10), | |
expire_date: "2018-11-16T18:46:19-0700", | |
proof_for: "PROOF_OF_IDENTITY", |
import React from "react"; | |
import { render } from "react-dom"; | |
import "./styles.scss"; | |
class App extends React.Component { | |
constructor(props) { | |
super(props); | |
this.state = { counter: 1 }; | |
} |
const FakeModal = ({ children, show }) => ( | |
<Fragment> | |
<div className="modal" style={{ display: show ? 'block' : 'none' }}> | |
<div className="modal-content"> | |
<span className="close">×</span> | |
<div className="clearfix" /> | |
<div className="modal-body">{children}</div> | |
</div> | |
</div> | |
</Fragment> |
import * as Yup from "yup"; | |
const values = 0; | |
const msg = "value should be multiple of hundred"; | |
Yup.addMethod(Yup.number, "multipleOfHundred", function(msg) { | |
return this.test("test-name", msg, function(value) { | |
const { path, createError } = this; | |
return value % 100 === 0 && value !== 0; |
import React from 'react' | |
import createRepository from './../services/createRepository' | |
class WithoutFormik extends React.Component { | |
state = { | |
name: '', | |
desc: '', | |
type: 'PUBLIC', | |
license: 'NONE', | |
errors: { |
if (!window.location.port && typeof window.__REACT_DEVTOOLS_GLOBAL_HOOK__ === 'object') { | |
window.__REACT_DEVTOOLS_GLOBAL_HOOK__.inject = function() {}; | |
} |
// mfaSignIn.js | |
const AWS = require("aws-sdk"); | |
try { | |
const credentials = { | |
email: "[email protected]", | |
password: "xxxxxxxxxxxxxx" | |
}; | |
const params = { |