Skip to content

Commit

Permalink
fix: 🐛 [skip ci] restore button close settings modal
Browse files Browse the repository at this point in the history
  • Loading branch information
haydenull committed Mar 4, 2022
1 parent 4ebb51f commit 9544979
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/components/Settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,15 +50,14 @@ const Settings: React.FC<{
footer={
<div className="flex justify-between" onClick={e => e?.stopPropagation?.()}>
<Popconfirm
title="Are you sure you want to restore default setting?"
title={<span>Are you sure you want to restore default setting?<br />This is an irreversible operation.</span>}
onConfirm={() => {
logseq.updateSettings({ calendarList: 1 })
logseq.updateSettings(DEFAULT_SETTINGS)
window.location.reload()
}}
onCancel={() => { }}
>
<Button type="link" onClick={onCancel}>Restore Defaults</Button>
<Button type="link">Restore Defaults</Button>
</Popconfirm>
<div>
<Button onClick={onCancel}>Cancel</Button>
Expand Down

0 comments on commit 9544979

Please sign in to comment.