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-inner">
<div className="modal-header"> <div className="modal-header">
<h1>{title}</h1> <h1>{title}</h1>
<button onClick={onClose}> <button className="secondary" onClick={onClose}>
<FaX /> <FaX />
</button> </button>
</div> </div>

View File

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