Skip to content

Commit

Permalink
Packages added and store created
Browse files Browse the repository at this point in the history
  • Loading branch information
ruslanchek committed Nov 11, 2019
1 parent 935d742 commit dacddf5
Show file tree
Hide file tree
Showing 5 changed files with 872 additions and 607 deletions.
1 change: 1 addition & 0 deletions .npmrc
@@ -0,0 +1 @@
registry=https://registry.npmjs.org
12 changes: 12 additions & 0 deletions .prettierrc
@@ -0,0 +1,12 @@
{
"bracketSpacing": true,
"jsxBracketSameLine": true,
"singleQuote": true,
"trailingComma": "all",
"printWidth": 80,
"tabWidth": 2,
"useTabs": false,
"semi": true,
"jsxSingleQuote": true,
"endOfLine": "auto"
}
3 changes: 3 additions & 0 deletions package.json
Expand Up @@ -7,9 +7,12 @@
"@types/node": "12.12.7",
"@types/react": "16.9.11",
"@types/react-dom": "16.9.4",
"@types/react-router-dom": "^5.1.2",
"react": "^16.11.0",
"react-dom": "^16.11.0",
"react-router-dom": "^5.1.2",
"react-scripts": "3.2.0",
"react-stores": "^3.0.4",
"typescript": "3.7.2"
},
"scripts": {
Expand Down
9 changes: 9 additions & 0 deletions src/store.ts
@@ -0,0 +1,9 @@
import { Store } from "react-stores";

interface IStoreState {
authorized: boolean;
}

export const store = new Store<IStoreState>({
authorized: false
});

0 comments on commit dacddf5

Please sign in to comment.