Skip to content
This repository has been archived by the owner on Mar 1, 2024. It is now read-only.

Commit

Permalink
refactor(NotificationTray): Fix default state
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsoftware committed Nov 28, 2018
1 parent d48f734 commit e26d736
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions example/src/SiteWrapper.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,10 +165,9 @@ const accountDropdownProps = {
};

class SiteWrapper extends React.Component<Props, State> {
constructor() {
super();
this.state = { unreadCount: 2 };
}
state = {
unreadCount: 2,
};

render(): React.Node {
const unreadCount = this.state.unreadCount || 0;
Expand Down

0 comments on commit e26d736

Please sign in to comment.