clean up widget settings modal a tiny bit

This commit is contained in:
wistec-bisrum 2024-09-09 01:20:44 +02:00
parent b490b36518
commit d210a9122a
2 changed files with 3 additions and 3 deletions

View File

@ -26,7 +26,7 @@ export const Modal: React.FC<Props> = ({ title, onClose, children }) => {
<div className="modal-inner">
<div className="modal-header">
<h1>{title}</h1>
<button onClick={onClose}>
<button className="secondary" onClick={onClose}>
<FaX />
</button>
</div>

View File

@ -13,11 +13,11 @@ const WidgetsSettingsModal = () => {
<div className="widget-settings">
{apps.filter((app) => app.widget).map((app) => {
return (
<div>
<div className="widget-settings-item">
<h4>{app.label}</h4>
<div>
<div>
<span>Show widget<input
<span><input
type="checkbox"
checked={!widgetSettings[app.id]?.hide}
onChange={() => toggleWidgetVisibility(app.id)}