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
// Custom options prop adds unnecessary complexity | |
<Select | |
options={[ | |
{ | |
title: 'One', | |
value: 'one', | |
}, | |
{ | |
title: 'Two', | |
value: 'two', |
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
export const Alert = styled.div<AlertStyle>` | |
background-color: ${({ type }) => secondaryAlertStyles[type]}; | |
border-radius: ${({ theme }) => theme.shape!.borderRadius}; | |
box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.2); | |
display: flex; | |
opacity: ${({ active }) => (active ? 1 : 0)}; | |
overflow: hidden; | |
${AccentBar} { | |
background-color: ${({ type }) => primaryAlertStyles[type]}; |
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
src/components/ | |
├── Button | |
│ ├── Button.stories.tsx | |
│ ├── Button.styled.ts | |
│ ├── Button.test.tsx | |
│ ├── Button.tsx | |
│ └── index.ts | |
├── Checkbox | |
│ ├── Checkbox.stories.tsx | |
│ ├── Checkbox.styled.ts |
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
{ | |
"extends": ["prettier"], | |
"plugins": ["prettier"], | |
"parser": "@typescript-eslint/parser", | |
"parserOptions": { | |
"ecmaVersion": 6, | |
"sourceType": "module" | |
}, | |
"rules": { | |
"prettier/prettier": "error" |
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 stream = require('stream') | |
const readline = require('readline') | |
const AWS = require('aws-sdk') | |
const S3 = new AWS.S3() | |
// read S3 file by line | |
function createReadline(Bucket, Key) { | |
// s3 read stream | |
const input = S3 |