mirror of
https://github.com/uqbar-dao/nectar.git
synced 2024-11-30 21:26:27 +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-header">
|
||||
<h1>{title}</h1>
|
||||
<button onClick={onClose}>
|
||||
<button className="secondary" onClick={onClose}>
|
||||
<FaX />
|
||||
</button>
|
||||
</div>
|
||||
|
@ -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)}
|
||||
|
Loading…
Reference in New Issue
Block a user