-
Notifications
You must be signed in to change notification settings - Fork 2
Display temp & RH in graph for each station #127
Conversation
* Add Button story * Separate theme obj from App.tsx
from "forecast" to "model" from "actual" to "reading
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few questions, and one concern in the Dockerfile, otherwise looks good. Let's chat about the Dockerfile.
// Theme documentation: https://material-ui.com/customization/palette/ | ||
// Theme demo: https://material.io/resources/color/#!/?view.left=1&view.right=1&primary.color=003365&secondary.color=FBC02D | ||
// Do not export this directly! theme should be accessed within makeStyles & withStyles. Use ErrorMessage.tsx as a reference | ||
export const theme = createMuiTheme({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The comment says not to export?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I had to make it exportable so that I can use the same theme in Storybook .storybook/decorators/ThemeDecorator.tsx
. I will change the wording to Do not export this directly for styling!
@@ -7,7 +7,7 @@ WORKDIR /app | |||
COPY package*.json ./ | |||
|
|||
## Install only the packages defined in the package-lock.json (faster than the normal npm install) | |||
RUN npm set progress=false && npm ci --production | |||
RUN npm set progress=false && npm ci --no-cache |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't we rather want?
RUN npm set progress=false && npm ci --no-cache | |
RUN npm set progress=false && npm ci --no-cache --production |
"typescript": "^3.7.5" | ||
}, | ||
"scripts": { | ||
"start": "react-scripts start", | ||
"start": "CI=true react-scripts start", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What does the CI=true
do?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not exactly sure what it does but it fixes the issue where it fails to start in the docker container.
facebook/create-react-app#8688 (comment)
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
No description provided.