-
Notifications
You must be signed in to change notification settings - Fork 0
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
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@@ -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); |
There was a problem hiding this comment.
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]"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
currentStep
to be deterministic ( no moreuseEffect
)