mirror of
https://github.com/FranP-code/Pomodoro-Timer-with-Clockify-integration.git
synced 2025-10-12 23:52:30 +00:00
implemented 'development' react enviroment
This commit is contained in:
@@ -23,7 +23,7 @@ const Header = (props) => {
|
|||||||
<h1 className='title-link'><Link to="/">Clockify Pomodoro Timer</Link></h1>
|
<h1 className='title-link'><Link to="/">Clockify Pomodoro Timer</Link></h1>
|
||||||
<div className="buttons-container">
|
<div className="buttons-container">
|
||||||
{
|
{
|
||||||
props.signedIn ?
|
props.signedIn || process.env?.REACT_APP_ENVIRONMENT === "development" ?
|
||||||
<>
|
<>
|
||||||
<Link to="/config-account">
|
<Link to="/config-account">
|
||||||
<button>API</button>
|
<button>API</button>
|
||||||
@@ -43,7 +43,7 @@ const Header = (props) => {
|
|||||||
{props.KonamiCodeActive ? 'Konami Code ON' : null}
|
{props.KonamiCodeActive ? 'Konami Code ON' : null}
|
||||||
</div>
|
</div>
|
||||||
{
|
{
|
||||||
props.notificationPermission === undefined || process.env.REACT_APP_ENVIROMENT !== "production" ?
|
props.notificationPermission === undefined || process.env.REACT_APP_ENVIROMENT === "development" ?
|
||||||
<div className={props.darkMode ? 'notification-select dark-mode-component' : 'notification-select'}>
|
<div className={props.darkMode ? 'notification-select dark-mode-component' : 'notification-select'}>
|
||||||
<p>Do you want to recibe a notification when a Pomodoro cicle ends?</p>
|
<p>Do you want to recibe a notification when a Pomodoro cicle ends?</p>
|
||||||
<button className="yes" onClick={getPermisionDesktopNotification}>YES</button>
|
<button className="yes" onClick={getPermisionDesktopNotification}>YES</button>
|
||||||
|
|||||||
Reference in New Issue
Block a user