mirror of
https://github.com/mue/mue.git
synced 2026-07-15 13:03:55 +02:00
perf: major widget refactoring
This commit is contained in:
@@ -30,7 +30,6 @@ const renderLoader = (current) => (
|
||||
);
|
||||
|
||||
export default function MainModal({ modalClose }) {
|
||||
const display = localStorage.getItem('showReminder') === 'true' ? 'flex' : 'none';
|
||||
const [currentTab, setCurrentTab] = useState(0);
|
||||
|
||||
const changeTab = (type) => {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import variables from 'modules/variables';
|
||||
import { PureComponent, createRef } from 'react';
|
||||
import { PureComponent } from 'react';
|
||||
import { MdUpdate, MdOutlineExtensionOff, MdCode } from 'react-icons/md';
|
||||
import { toast } from 'react-toastify';
|
||||
import Modal from 'react-modal';
|
||||
|
||||
@@ -26,8 +26,10 @@ export default class Tabs extends PureComponent {
|
||||
};
|
||||
|
||||
render() {
|
||||
const display = localStorage.getItem('showReminder') === 'true' ? 'flex' : 'none';
|
||||
|
||||
const reminderInfo = (
|
||||
<div className="reminder-info" style={{ display: 'none' }}>
|
||||
<div className="reminder-info" style={{ display }}>
|
||||
<span className="title">{variables.getMessage('modals.main.settings.reminder.title')}</span>
|
||||
<span className="subtitle">
|
||||
{variables.getMessage('modals.main.settings.reminder.message')}
|
||||
|
||||
Reference in New Issue
Block a user