mirror of
https://github.com/morten-olsen/parcel.git
synced 2026-02-08 01:36:24 +01:00
Updates
This commit is contained in:
@@ -1,18 +1,11 @@
|
||||
import React, { useContext, useEffect } from 'react';
|
||||
import React, { useContext } from 'react';
|
||||
import { Divider } from 'antd';
|
||||
import { useHistory } from 'react-router';
|
||||
import Add from '../components/encrypt/Add';
|
||||
import FileList from '../components/FileList';
|
||||
import EncryptionContext from '../contexts/Encryption';
|
||||
|
||||
const Encrypt: React.FC = () => {
|
||||
const history = useHistory();
|
||||
const { files, deleteFile } = useContext(EncryptionContext);
|
||||
useEffect(() => {
|
||||
if (localStorage.getItem('welcome') !== 'seen') {
|
||||
history.replace('/welcome');
|
||||
}
|
||||
}, []);
|
||||
|
||||
return (
|
||||
<>
|
||||
|
||||
Reference in New Issue
Block a user