Move actions into context menu, add support for deleting a backup

This commit is contained in:
Dane Everitt 2020-04-09 22:08:09 -07:00
parent 2eb6ab4d63
commit 9ba6aaebde
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
10 changed files with 344 additions and 66 deletions

View file

@ -0,0 +1,16 @@
import React from 'react';
import Modal, { RequiredModalProps } from '@/components/elements/Modal';
const ChecksumModal = ({ checksum, ...props }: RequiredModalProps & { checksum: string }) => (
<Modal {...props}>
<h3 className={'mb-6'}>Verify file checksum</h3>
<p className={'text-sm'}>
The SHA256 checksum of this file is:
</p>
<pre className={'mt-2 text-sm p-2 bg-neutral-900 rounded'}>
<code className={'block font-mono'}>{checksum}</code>
</pre>
</Modal>
);
export default ChecksumModal;