Skip to content

Commit 0923191

Browse files
Remove import page back button (#433)
We're removing this because due to the embedded MakeCode messing with history it doesn't work on first click. No easy fix so better for folks to use browser back where they might be annoyed but will at least probably try again.
1 parent 53bbb67 commit 0923191

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/pages/ImportPage.tsx

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,6 @@ const ImportPage = () => {
8383
}
8484
}, [connStageActions, loadProject, name, navigate, newSession, project]);
8585

86-
const handleBack = useCallback(() => {
87-
navigate(-1);
88-
}, [navigate]);
89-
9086
const { saveHex } = useProject();
9187
const handleSave = useCallback(() => {
9288
void saveHex();
@@ -144,10 +140,7 @@ const ImportPage = () => {
144140
onChange={(e) => setName(e.currentTarget.value)}
145141
/>
146142
</Stack>
147-
<HStack pt={5} justifyContent="space-between">
148-
<Button variant="ghost" onClick={handleBack} size="lg">
149-
<FormattedMessage id="back-action" />
150-
</Button>
143+
<HStack pt={5} justifyContent="flex-end">
151144
<Button
152145
isDisabled={!isValidSetup}
153146
isLoading={fetchingProject}

0 commit comments

Comments
 (0)