mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-12 12:40:08 +08:00
78a7388318
Test Plan: Tested locally. Reviewers: halla, juan, evan Reviewed By: juan, evan Differential Revision: https://phab.nylas.com/D3645
27 lines
610 B
JavaScript
27 lines
610 B
JavaScript
import {React} from 'nylas-exports';
|
|
import {Notification} from 'nylas-component-kit';
|
|
|
|
export default class DevModeNotification extends React.Component {
|
|
static displayName = 'DevModeNotification';
|
|
|
|
constructor() {
|
|
super();
|
|
// Don't need listeners to update this, since toggling dev mode reloads
|
|
// the entire window anyway
|
|
this.state = {
|
|
inDevMode: NylasEnv.inDevMode(),
|
|
}
|
|
}
|
|
|
|
render() {
|
|
if (!this.state.inDevMode) {
|
|
return <span />
|
|
}
|
|
return (
|
|
<Notification
|
|
priority="0"
|
|
title="Nylas Mail is running in dev mode!"
|
|
/>
|
|
)
|
|
}
|
|
}
|