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 { Popover, Input, Calendar, Icon, Select, Button, Col, Row } from "antd"; | |
import debounce from "lodash/debounce"; | |
import moment from "moment"; | |
import "antd/dist/antd.css"; | |
class DatePicker extends Component { | |
static getDerivedStateFromProps(nextProps) { | |
// Should be a controlled component. | |
if ("value" in nextProps) { |
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 ReactDOM from "react-dom"; | |
import { configureAmplify, SetS3Config } from "./services"; | |
import Storage from "@aws-amplify/storage"; | |
import "./styles.css"; | |
class App extends Component { | |
state = { | |
imageName: "", | |
imageFile: "", |
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
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Effect": "Allow", | |
"Principal": { | |
"Federated": "cognito-identity.amazonaws.com" | |
}, | |
"Action": "sts:AssumeRoleWithWebIdentity", | |
"Condition": { |
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
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Effect": "Allow", | |
"Action": [ | |
"mobileanalytics:PutEvents", | |
"cognito-sync:*", | |
"cognito-identity:*" | |
], |
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 Amplify from '@aws-amplify/core'; | |
import Storage from '@aws-amplify/storage'; | |
export function configureAmplify() { | |
Amplify.configure( | |
{ | |
Auth: { | |
identityPoolId: process.env.REACT_APP_identityPoolId, | |
region: process.env.REACT_APP_region, | |
userPoolId: process.env.REACT_APP_userPoolId, |
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 Amplify from '@aws-amplify/core'; | |
export function configureAmplify() { | |
Amplify.configure( | |
{ | |
Auth: { | |
identityPoolId: process.env.REACT_APP_identityPoolId, | |
region: process.env.REACT_APP_region, | |
userPoolId: process.env.REACT_APP_userPoolId, | |
userPoolWebClientId: process.env.REACT_APP_userPoolWebClientId, |