Refactor
This commit is contained in:
9
src/utils/actions.js
Normal file
9
src/utils/actions.js
Normal file
@@ -0,0 +1,9 @@
|
||||
export default (type, ...argNames) => {
|
||||
return function(...args) {
|
||||
let action = { type }
|
||||
argNames.forEach((arg, index) => {
|
||||
action[argNames[index]] = args[index]
|
||||
})
|
||||
return action
|
||||
}
|
||||
}
|
||||
23
src/utils/base-styles.scss
Normal file
23
src/utils/base-styles.scss
Normal file
@@ -0,0 +1,23 @@
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
html, body, .viewport {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
html, body {
|
||||
font-family: 'Atlas Grotesk', 'Helvetica Neue', sans-serif;
|
||||
}
|
||||
|
||||
a {
|
||||
color: #0C77F8;
|
||||
}
|
||||
|
||||
:global {
|
||||
.Codemirror {
|
||||
height: auto;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user