From 50c5515a503dfe936a159feb13633ce98435c954 Mon Sep 17 00:00:00 2001 From: Alessandro DiMarco Date: Thu, 25 May 2017 13:43:37 -0400 Subject: [PATCH 1/2] Add bloclink URL --- src/components/BuildingOverview/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/BuildingOverview/index.js b/src/components/BuildingOverview/index.js index e95df713..19d1a8f4 100644 --- a/src/components/BuildingOverview/index.js +++ b/src/components/BuildingOverview/index.js @@ -52,9 +52,9 @@ export default class BuildingOverview extends Component { { name: 'Overview', url: '' }, ]} links={[ + { name: 'BlocLink', url: `${process.env.REACT_APP_BLOCLINK_URL}/buildings/${this.props.buildingId}/envelope`, tags: '' }, { name: loadingFolder ? 'Loading Building Folder...' : 'Building Folder', url: this.props.documents.folderUrl, tags: '' }, /* { name: 'Sales Force', url: '//google.com', tags: '' }, - { name: 'Engineering', url: '//google.com', tags: 'engineering/' }, { name: 'Finance', url: '//google.com', tags: 'finance/' }, */ ]} /> -- GitLab From c020702f67a364c0b3914f52c7d5911718a151d2 Mon Sep 17 00:00:00 2001 From: Alessandro DiMarco Date: Thu, 25 May 2017 13:45:18 -0400 Subject: [PATCH 2/2] Update readme with new environment variable --- README.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index bed594c4..a71be8d3 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,7 @@ REACT_APP_PROJECT_SERVICE REACT_APP_DOCUMENT_SERVICE REACT_APP_BUILDING_SERVICE REACT_APP_UTILITY_SERVICE +REACT_APP_BLOCLINK_URL ``` ### Optional - [React Devtools](https://github.com/facebook/react-devtools) @@ -20,10 +21,10 @@ REACT_APP_UTILITY_SERVICE ## `npm start` Runs the app in development mode.
Open [http://localhost:5501](http://localhost:5501) to view it in the browser. - + ## Folder Structure The folder structure is inspired by this [video](https://vimeo.com/168648012). -`Components` are reusable UI elements and `containers` are components that are connected to the redux store. +`Components` are reusable UI elements and `containers` are components that are connected to the redux store. `Screens` are components that set the layout of the view. An example of how these three components interact is a `route` will render a `screen` which could be composed of `containers` and `componets`. A `container` may fetch some data and render multiple `components` to display the data. ``` @@ -32,7 +33,7 @@ The folder structure is inspired by this [video](https://vimeo.com/168648012). │ │ ├── components │ │ │ ├── Card │ │ │ │ ├── index.js -│ │ │ │ └── styles.css +│ │ │ │ └── styles.css │ │ │ └── ... │ │ ├── containers │ │ │ ├── Building @@ -58,7 +59,7 @@ The folder structure is inspired by this [video](https://vimeo.com/168648012). │ │ ├── routes.js │ │ ├── sagas.js │ │ └── store.js -``` +``` ## Resources -- GitLab