Skip to content

Commit f46fc8e

Browse files
Merge pull request #15 from tiburon-security/origin/master
Origin/master
2 parents 349add6 + fde7974 commit f46fc8e

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@tiburon-security/petrichor-dashboard",
3-
"version": "0.6.3",
3+
"version": "1.0.3",0
44
"homepage": "https://github.com/tiburon-security/petrichor-dashboard",
55
"license": "MIT",
66
"devDependencies": {

src/Dashboard/WidgetStyles.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,9 @@ const ContentContainer = styled.div`
4141
`;
4242

4343
const Content = styled.div`
44-
display : ${props => props.loading && "none"};
4544
height : 100%;
45+
${props => props.loading && `display:none`};
46+
4647
`;
4748

4849

@@ -121,7 +122,7 @@ class FullWidget extends Component {
121122
<LoadingIcon alt="Loading Icon" src={LoadingIconImg} />
122123
)}
123124

124-
<Content loading={this.state.loading}>
125+
<Content loading={this.state.loading ? 1 : 0}>
125126
{this.props.children}
126127
</Content>
127128

src/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ function bootstrapApplication(config, userConfig){
3838
// Hook the content body of gentella, this is where page content
3939
// will be rendered. Routes control this body content
4040
ReactDOM.render((
41+
<React.StrictMode>
4142
<Provider store={store}>
4243
<BrowserRouter>
4344

@@ -51,7 +52,8 @@ function bootstrapApplication(config, userConfig){
5152
)}
5253
/>
5354
</BrowserRouter>
54-
</Provider>
55+
</Provider>
56+
</React.StrictMode>
5557

5658
), document.getElementById('root'));
5759

0 commit comments

Comments
 (0)