diff --git a/.stylelintrc b/.stylelintrc index 045010a1..b8426f0f 100644 --- a/.stylelintrc +++ b/.stylelintrc @@ -8,6 +8,24 @@ ], "rules": { "indentation": 4, - "block-no-empty": null + "declaration-empty-line-before": null, + "custom-property-empty-line-before": null, + "max-empty-lines": 1, + "block-no-empty": null, + "property-no-unknown": [ + true, { + "ignoreProperties": ["composes", "font-smoothing", "font-smooth"] + } + ], + "at-rule-empty-line-before": [ + "always", { + "ignoreAtRules": [ + "import" + ] + } + ], + "at-rule-no-unknown": [ true, { + ignoreAtRules: ["each"] + }] } } \ No newline at end of file diff --git a/jest.config.js b/jest.config.js index ab51975b..d7e1c86a 100644 --- a/jest.config.js +++ b/jest.config.js @@ -2,7 +2,6 @@ module.exports = { rootDir: './src', collectCoverage: true, testURL: 'http://localhost', - modulePathIgnorePatterns: [ 'node_modules', ], diff --git a/package.json b/package.json index ea866eaa..e627a418 100644 --- a/package.json +++ b/package.json @@ -1,12 +1,8 @@ { - "name": "trezor-connect-react-boilerplate", + "name": "trezor-wallet", "version": "1.0.0", "author": "TREZOR ", "description": "", - "repository": { - "type": "git", - "url": "https://github.com/szymonlesisz/trezor-connect-react-boilerplate.git" - }, "bugs": { "url": "https://github.com/szymonlesisz/trezor-connect-react-boilerplate/issues" }, diff --git a/src/components/Input/index.js b/src/components/Input/index.js index defb6db0..26c0a842 100644 --- a/src/components/Input/index.js +++ b/src/components/Input/index.js @@ -29,12 +29,14 @@ const StyledInput = styled.input` box-shadow: 0 1px 4px 0 rgba(1, 183, 87, 0.25); } `} + ${props => props.isWarning && css` border-color: ${colors.WARNING_PRIMARY}; &:focus { box-shadow: 0 1px 4px 0 rgba(235, 138, 0, 0.25); } `} + ${props => props.isError && css` border-color: ${colors.ERROR_PRIMARY}; &:focus {