Skip to content

Commit

Permalink
replace the ‘upload eml file’ button that goes to the upload page w …
Browse files Browse the repository at this point in the history
…the two options, with just the drop .eml box
  • Loading branch information
Eeshau committed Nov 12, 2024
1 parent e130c9c commit 7c4b39d
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions packages/app/src/pages/MainPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,7 @@ export const MainPage: React.FC<{}> = (props) => {
if (file.name.endsWith(".eml")) {
const content = await file.text();
setEmailFull(content);
setActiveStep(2)
} else {
alert("Only .eml files are allowed.");
}
Expand Down Expand Up @@ -545,23 +546,6 @@ export const MainPage: React.FC<{}> = (props) => {
onFileDrop={onFileDrop}
highlighted={true}
/>
<h3
style={{
textAlign: "center",
marginTop: "0rem",
marginBottom: "0rem",
}}
>
OR
</h3>
<LabeledTextArea
highlighted={true}
label="Full Email with Headers"
value={emailFull}
onChange={(e) => {
setEmailFull(e.currentTarget.value);
}}
/>
</>
) : null}

Expand Down

0 comments on commit 7c4b39d

Please sign in to comment.