diff --git a/src/components/helpers/notification/notification.jsx b/src/components/helpers/notification/notification.jsx new file mode 100644 index 00000000..b76b527a --- /dev/null +++ b/src/components/helpers/notification/notification.jsx @@ -0,0 +1,14 @@ +import variables from 'modules/variables'; +import './preview.scss'; + +export default function Notification(props) { + const getMessage = (text) => variables.language.getMessage(variables.languagecode, text); + + return ( +
+ {getMessage('modals.main.settings.reminder.title')} + {getMessage('modals.welcome.preview.description')} + +
+ ); +} diff --git a/src/components/helpers/sharemodal/ShareModal.jsx b/src/components/helpers/sharemodal/ShareModal.jsx index b301dbc8..4e78bbbd 100644 --- a/src/components/helpers/sharemodal/ShareModal.jsx +++ b/src/components/helpers/sharemodal/ShareModal.jsx @@ -42,7 +42,7 @@ export default function ShareModal({ modalClose, data }) { onClick={() => window .open( - `https://twitter.com/intent/tweet?text=Check out ${data.data.name} on @getmue: ${data}`, + `https://twitter.com/intent/tweet?text=Check out ${data.name} on @getmue: ${data}`, '_blank', ) .focus() diff --git a/src/components/modals/main/settings/sections/Time.jsx b/src/components/modals/main/settings/sections/Time.jsx index 1af8dac3..50087b12 100644 --- a/src/components/modals/main/settings/sections/Time.jsx +++ b/src/components/modals/main/settings/sections/Time.jsx @@ -164,38 +164,6 @@ export default class TimeSettings extends PureComponent { {timeSettings} - {/* - - - - */} ); } diff --git a/src/components/widgets/time/Clock.jsx b/src/components/widgets/time/Clock.jsx index f2157510..c67d87fc 100644 --- a/src/components/widgets/time/Clock.jsx +++ b/src/components/widgets/time/Clock.jsx @@ -4,7 +4,6 @@ import { convertTimezone } from 'modules/helpers/date'; import EventBus from 'modules/helpers/eventbus'; import './clock.scss'; -import Pomodoro from './Pomodoro'; const Analog = lazy(() => import('react-clock')); const renderLoader = () => <>; @@ -160,12 +159,6 @@ export default class Clock extends PureComponent { {this.state.time} {this.state.ampm} - {localStorage.getItem('Pomodoro') === 'true' ? ( - - ) : null} ); diff --git a/src/components/widgets/time/Pomodoro.jsx b/src/components/widgets/time/Pomodoro.jsx deleted file mode 100644 index 52e14932..00000000 --- a/src/components/widgets/time/Pomodoro.jsx +++ /dev/null @@ -1,45 +0,0 @@ -import variables from 'modules/variables'; -import { PureComponent, createRef } from 'react'; - -import { nth, convertTimezone } from 'modules/helpers/date'; -import EventBus from 'modules/helpers/eventbus'; -import Tooltip from '../../helpers/tooltip/Tooltip'; -import { MdSkipNext, MdOutlineRestartAlt, MdPlayArrow, MdWork } from 'react-icons/md'; - -import './clock.scss'; - -export default function Pomodoro({ hours, minutes }) { - return ( -
-
- - {' '} - - - - - {/*{localStorage.getItem('PomodoroBreakLength')}{localStorage.getItem('pomdoroWorkLength')}*/} -
-
- - - - - - - - - -
-
- {localStorage.getItem('pomdoroWorkLength')}:00 -
-
- ); -} diff --git a/src/components/widgets/time/clock.scss b/src/components/widgets/time/clock.scss index 4b037238..fd5a6c7f 100644 --- a/src/components/widgets/time/clock.scss +++ b/src/components/widgets/time/clock.scss @@ -41,46 +41,6 @@ padding: 1rem; } -// ok so if pomodoro is a separate component, why is this in clock? -// ^ above note is for alex -.pomodoro { - margin-top: -20px; - @extend %basic; - padding: 5px 15px 5px 15px; - font-size: 12px; - display: flex; - flex-flow: row; - gap: 10px; - align-items: center; - - .pomodoroTime { - display: flex; - flex-flow: row; - align-items: center; - gap: 5px; - - .timeRemaining { - } - - .type { - color: #ccc; - font-weight: bold; - text-transform: uppercase; - display: grid; - } - } - - .pomodoroControls { - display: flex; - flex-flow: row; - justify-content: space-evenly; - gap: 5px; - } - - button { - @include basicIconButton(5px, 11px, ui); - } -} .new-clock { line-height: 100%; diff --git a/src/modules/helpers/settings/modals.js b/src/modules/helpers/settings/modals.js index 3add0a77..bffd109a 100644 --- a/src/modules/helpers/settings/modals.js +++ b/src/modules/helpers/settings/modals.js @@ -70,18 +70,6 @@ export function values(type) { { value: 200, label: '2x' }, { value: 400, label: '4x' }, ], - pomodoroWork: [ - { value: 5, label: '5m' }, - { value: 25, label: '25m' }, - { value: 45, label: '45m' }, - { value: 60, label: '60m' }, - ], - pomodoroBreak: [ - { value: 1, label: '1s' }, - { value: 5, label: '5m' }, - { value: 25, label: '25m' }, - { value: 45, label: '45m' }, - ], toast: [ { value: 500, label: '0.5s' }, { value: 1000, label: '1s' }, diff --git a/src/modules/languages.json b/src/modules/languages.json index b513fe0f..66ce1ba3 100644 --- a/src/modules/languages.json +++ b/src/modules/languages.json @@ -36,7 +36,7 @@ "value": "zh_CN" }, { - "name": "Turkish", + "name": "Türkçe", "value": "tr_TR" } ]