Skip to content

Commit

Permalink
feat: add nrlabs Messages component
Browse files Browse the repository at this point in the history
  • Loading branch information
shahramk committed Mar 3, 2023
1 parent 349b41a commit 71c6f37
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions nerdlets/status-page-dashboard/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react';
import StatusPagesDashboard from './main-page';
import { Icon, nerdlet, NerdletStateContext } from 'nr1';

import { HelpModal } from 'nr-labs-components';
import { HelpModal, Messages } from 'nr-labs-components';

export default class Wrapper extends React.PureComponent {
state = {
Expand Down Expand Up @@ -32,7 +32,8 @@ export default class Wrapper extends React.PureComponent {
const { helpModalOpen } = this.state;

return (
<>
<div>
<Messages repo="nr1-status-pages" branch="main" />
<NerdletStateContext.Consumer>
{nerdletUrlState => {
const { entityGuid } = nerdletUrlState;
Expand Down Expand Up @@ -74,7 +75,7 @@ export default class Wrapper extends React.PureComponent {
}}
/>
)}
</>
</div>
);
}
}

0 comments on commit 71c6f37

Please sign in to comment.