mirror of
https://github.com/uqbar-dao/nectar.git
synced 2024-12-03 03:36:30 +03:00
clean up widget settings modal a tiny bit
This commit is contained in:
parent
b490b36518
commit
d210a9122a
@ -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>
|
||||||
|
@ -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)}
|
||||||
|
Loading…
Reference in New Issue
Block a user