Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removing unused components #16

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 0 additions & 45 deletions web/components/NotaryKey/index.scss

This file was deleted.

89 changes: 0 additions & 89 deletions web/components/NotaryKey/index.tsx

This file was deleted.

45 changes: 0 additions & 45 deletions web/components/ProofDetails/index.scss

This file was deleted.

177 changes: 0 additions & 177 deletions web/components/ProofDetails/index.tsx

This file was deleted.

3 changes: 1 addition & 2 deletions web/components/ProofViewer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import React, {
useCallback,
} from 'react';
import c from 'classnames';
import classNames from 'classnames';
import { Proof as VerifiedProof } from '../../utils/types/types';
import { Proof } from 'tlsn-js/build/types';
import Modal, { ModalContent, ModalFooter, ModalHeader } from '../Modal';
Expand Down Expand Up @@ -44,7 +43,7 @@ export default function ProofViewer(props: {
}, [props.file, props.verifiedProof, props.proof]);

return (
<div className={classNames('flex flex-col py-2 gap-2', props.className)}>
<div className={c('flex flex-col py-2 gap-2', props.className)}>
{showingShareWarning && (
<ShareWarningModal
onClose={() => showShareWarning(false)}
Expand Down
4 changes: 3 additions & 1 deletion web/pages/FileDrop/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import ProofViewer from '../../components/ProofViewer';
import { Proof as VerifiedProof } from '../../utils/types/types';
import { FileDropdown } from '../../components/FileDropdown';
import { PubkeyInput } from '../PubkeyInput';
import type { Proof } from 'tlsn-js/build/types';


export default function FileDrop(): ReactElement {
const dispatch = useDispatch();
Expand All @@ -19,7 +21,7 @@ export default function FileDrop(): ReactElement {
const [pubkey, setPubkey] = useState('');
const [uploading, setUploading] = useState(false);

const onVerify = useCallback(async (json: any, key = '') => {
const onVerify = useCallback(async (json: Proof, key = '') => {
const { verify } = await import('tlsn-js');
const resp = await verify(json, key);
setVerifiedProof(resp);
Expand Down
Loading