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

Tackling Pending Features #5

Merged
merged 6 commits into from
Aug 7, 2024
Merged

Tackling Pending Features #5

merged 6 commits into from
Aug 7, 2024

Conversation

MattPereira
Copy link
Member

@MattPereira MattPereira commented Aug 6, 2024

  • Blocks advance to preview if you enter an amount greater than the balance in your wallet
  • Blocks advance to preview if amount less than min amount for tokens with fewer than 18 decimals
  • Refactored state management for currentStep to be deterministic ( no more useEffect )
  • Brought tx errors to surface so user can see
  • Added instructions for how to run on a local fork

Copy link

vercel bot commented Aug 6, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
pool-creator ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 7, 2024 11:22pm

@@ -19,7 +19,6 @@ export const PoolCreation = ({ state, clearState }: ManagePoolCreationProps) =>
const token2RawAmount = parseUnits(state.token2Amount, state.token2.decimals);
const [currentStep, setCurrentStep] = useState(1);
const [userPoolAddress, setUserPoolAddress] = useState<Address>();
const [poolFinalized, setPoolFinalized] = useState<boolean>(false);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't think we need separate state for this since same as currentStep === 6 which now happens onSuccess of finalizePool

@@ -14,8 +14,8 @@ export const Alert: React.FC<AlertProps> = ({ children, type }) => {
bgColor = "bg-[#fb923c40]";
borderColor = "border-orange-400";
} else if (type === "success") {
bgColor = "bg-green-800";
borderColor = "border-green-400";
bgColor = "bg-[#15803d33]";
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

image

@MattPereira MattPereira marked this pull request as ready for review August 7, 2024 01:03
@MattPereira MattPereira requested a review from danielmkm August 7, 2024 01:04
@MattPereira MattPereira merged commit 913eafd into main Aug 7, 2024
3 checks passed
@MattPereira MattPereira deleted the development branch October 3, 2024 20:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant