Skip to content
This repository has been archived by the owner on Dec 21, 2023. It is now read-only.

Commit

Permalink
fix: change create drop modal to be first entry
Browse files Browse the repository at this point in the history
  • Loading branch information
hirbod committed Oct 31, 2023
1 parent e9c5d78 commit fb2f2bc
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ type CreateDropStep =
| "select-drop";

export const CreateDropSteps = () => {
const [step, setStep] = useState<CreateDropStep>("select-drop");
const [step, setStep] = useState<CreateDropStep>("media");
const modalContext = useModalScreenContext();
const {
control,
Expand Down Expand Up @@ -228,8 +228,9 @@ export const CreateDropSteps = () => {
handleNextStep={() => setStep("title")}
handleFileChange={handleFileChange}
handlePrevStep={() => {
setStep("select-drop");
modalContext?.snapToIndex(0);
//setStep("select-drop");
//modalContext?.snapToIndex(0);
modalContext?.pop();
}}
description={description}
file={file}
Expand Down Expand Up @@ -332,7 +333,7 @@ const CreateDropStepMedia = (
const mediaWidth = Math.min(340, windowWidth - 32);

return (
<Layout onBackPress={handlePrevStep} title="Create">
<Layout onBackPress={handlePrevStep} title="Create" closeIcon>
<View tw="px-4">
<Text tw="px-8 text-center text-xl font-medium text-gray-900 dark:text-gray-50">
Upload an image or video for your Pre-Save Airdrop
Expand Down

0 comments on commit fb2f2bc

Please sign in to comment.