Skip to content

Commit

Permalink
fix: service worker update button width
Browse files Browse the repository at this point in the history
  • Loading branch information
zanechua committed Mar 16, 2022
1 parent 82b439b commit 7db65fc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/ServiceWorkerUpdate.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import React from 'react';
import { Transition } from '@headlessui/react';

import useStore from '../lib/zustand';
import useStore from 'lib/zustand';

const ExclamationIcon = () => (
<svg
Expand All @@ -22,6 +21,7 @@ const ExclamationIcon = () => (
const ServiceWorkerUpdate = () => {
const hasUpdateReady = useStore(state => state.hasSwUpdateReady);
const show = hasUpdateReady;

return (
<Transition
show={show ?? false}
Expand All @@ -47,11 +47,11 @@ const ServiceWorkerUpdate = () => {
</p>
</div>
</div>
<div className="px-4 py-3 object-right justify-self-end sm:(px-6 flex flex-row-reverse)">
<div className="px-4 py-3 items-center justify-center sm:(px-6 flex flex-row-reverse)">
<button
onClick={() => window.location.reload(true)}
type="button"
className="w-full rounded-md border border-transparent shadow-sm px-4 py-2 text-base text-white bg-gray-800 hover:bg-gray-900 sm:(ml-3 w-auto text-sm)">
className="flex-1 rounded-md border border-transparent shadow-sm px-4 py-2 text-base text-white bg-gray-800 hover:bg-gray-900 sm:(ml-3 max-w-2xl text-sm)">
Load
</button>
</div>
Expand Down

0 comments on commit 7db65fc

Please sign in to comment.