Skip to content

Commit

Permalink
reload prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
goker-dev committed Feb 28, 2024
1 parent 60c0796 commit 0c65294
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
Binary file modified public/screenshot-narrow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/screenshot-wide-app.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/screenshot-wide.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 5 additions & 4 deletions src/layout/components/ReloadPrompt.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,18 @@ export default function Reload() {
)}
</div>
<div>
{needRefresh && (
{needRefresh ? (
<button
className='ml-4 button button-sm button-red'
onClick={() => updateServiceWorker(true)}
>
{t('Reload')}
</button>
) : (
<button className='ml-4 button button-sm button-red' onClick={() => close()}>
{t('Close')}
</button>
)}
<button className='ml-4 button button-sm button-red' onClick={() => close()}>
{t('Close')}
</button>
</div>
</div>
)}
Expand Down

0 comments on commit 0c65294

Please sign in to comment.