Skip to content

Commit

Permalink
fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
jaroslaw-weber committed Oct 20, 2023
1 parent 1900af7 commit 0201c72
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
1 change: 0 additions & 1 deletion app/components/ImportButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { currentUiAtom, userInputAtom } from "../state";
import { Ui } from "../Ui";

export default function ImportButton() {
return <div/>
const [, setUserInput] = useAtom(userInputAtom);
const fileInputRef = useRef<any>(null);
const [, setCurrentUi] = useAtom(currentUiAtom);
Expand Down
9 changes: 3 additions & 6 deletions app/pages/HomePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,13 @@ import Upload from "../components/Upload";

export default function HomePage() {
const [currentUi] = useAtom(currentUiAtom);
const progress = Progress();
const text = Text();
const pageChangeButtons = PageChangeButtons();

const result = (
<div className="flex-1 flex flex-col justify-center items-center gap-4 pb-12 w-1/2 h-full">
{progress}
{text}
<Progress />
<Text />

{pageChangeButtons}
<PageChangeButtons />
</div>
);
if (currentUi != Ui.Type) {
Expand Down
3 changes: 1 addition & 2 deletions app/pages/UploadPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,10 @@ export default function UploadPage() {
const [currentUi] = useAtom(currentUiAtom);
console.log('currentUi', currentUi)

const upload = Upload()

const result = (
<div className="flex flex-col justify-center items-center gap-8 pt-32 w-1/2 h-full">
{upload}
<Upload/>
</div>
);
if (currentUi != Ui.Upload) {
Expand Down

0 comments on commit 0201c72

Please sign in to comment.