-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create deployment review page skeleton
- Loading branch information
Showing
9 changed files
with
158 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
import { BackButton } from '../../../components/buttons/BackButton'; | ||
import { SolidButton } from '../../../components/buttons/SolidButton'; | ||
import { H1 } from '../../../components/text/H1'; | ||
import { CardPage } from '../../../flows/CardPage'; | ||
import { useCardNav } from '../../../flows/hooks'; | ||
import { Stepper } from '../../../flows/Stepper'; | ||
import { useMultiProvider } from '../../chains/hooks'; | ||
import { useStore } from '../../store'; | ||
|
||
export function WarpDeploymentReview() { | ||
return ( | ||
<div className="flex w-full flex-col items-stretch xs:min-w-112"> | ||
<div className="space-y-5"> | ||
<HeaderSection /> | ||
<ConfigSection /> | ||
<ButtonSection /> | ||
</div> | ||
</div> | ||
); | ||
} | ||
|
||
function HeaderSection() { | ||
return ( | ||
<div className="flex items-center justify-between gap-10"> | ||
<H1>Review Deployment</H1> | ||
<Stepper numSteps={5} currentStep={3} /> | ||
</div> | ||
); | ||
} | ||
|
||
function ConfigSection() { | ||
const _multiProvider = useMultiProvider(); | ||
const { deploymentConfig } = useStore((s) => ({ deploymentConfig: s.deploymentConfig })); | ||
return <div>{JSON.stringify(deploymentConfig)}</div>; | ||
} | ||
|
||
function ButtonSection() { | ||
const { setPage } = useCardNav(); | ||
const onClickContinue = () => { | ||
setPage(CardPage.WarpDeploy); | ||
}; | ||
|
||
return ( | ||
<div className="mt-4 flex items-center justify-between"> | ||
<BackButton page={CardPage.WarpForm} /> | ||
<SolidButton onClick={onClickContinue} className="px-3 py-1.5" color="accent"> | ||
Deploy | ||
</SolidButton> | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
import { TokenType } from '@hyperlane-xyz/sdk'; | ||
|
||
export interface WarpDeploymentFormValues { | ||
configs: Array<WarpDeploymentConfigEntry>; | ||
} | ||
|
||
export interface WarpDeploymentConfigEntry { | ||
export interface WarpDeploymentConfigItem { | ||
chainName: ChainName; | ||
tokenType: TokenType; | ||
tokenAddress?: Address; | ||
} | ||
|
||
export interface WarpDeploymentFormValues { | ||
configs: Array<WarpDeploymentConfigItem>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.