Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removed excess Widget class in favor of DashboardWidget #2164

Merged
merged 1 commit into from
May 20, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions js/src/admin/compat.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import AddExtensionModal from './components/AddExtensionModal';
import ExtensionsPage from './components/ExtensionsPage';
import AdminLinkButton from './components/AdminLinkButton';
import PermissionGrid from './components/PermissionGrid';
import Widget from './components/Widget';
import MailPage from './components/MailPage';
import UploadImageButton from './components/UploadImageButton';
import LoadingModal from './components/LoadingModal';
Expand Down Expand Up @@ -46,7 +45,6 @@ export default Object.assign(compat, {
'components/ExtensionsPage': ExtensionsPage,
'components/AdminLinkButton': AdminLinkButton,
'components/PermissionGrid': PermissionGrid,
'components/Widget': Widget,
'components/MailPage': MailPage,
'components/UploadImageButton': UploadImageButton,
'components/LoadingModal': LoadingModal,
Expand Down
13 changes: 2 additions & 11 deletions js/src/admin/components/DashboardWidget.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,8 @@
/*
* This file is part of Flarum.
*
* (c) Toby Zerner <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

import Component from '../../common/Component';

export default class Widget extends Component {
export default class DashboardWidget extends Component {
view() {
return <div className={'Widget ' + this.className()}>{this.content()}</div>;
return <div className={'DashboardWidget Widget ' + this.className()}>{this.content()}</div>;
}

/**
Expand Down
34 changes: 0 additions & 34 deletions js/src/admin/components/Widget.js

This file was deleted.

2 changes: 1 addition & 1 deletion less/admin/DashboardPage.less
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
}
}

.Widget {
.DashboardWidget {
background: @body-bg;
color: @text-color;
border-radius: @border-radius;
Expand Down