Skip to content

Commit

Permalink
feat: add submit button, and more
Browse files Browse the repository at this point in the history
  • Loading branch information
honeymaro committed Jan 6, 2023
1 parent c714d72 commit 803a50e
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 28 deletions.
2 changes: 1 addition & 1 deletion src/pages/Pool/Provide/InputGroup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ const InputGroup = forwardRef<HTMLInputElement, InputGroupProps>(
{asset?.symbol}
</AssetButton>
</Col>
<Col xs="content">
<Col xs="content" className="cm-hidden">
<Copy size={38} value={asset?.address} />
</Col>
</Row>
Expand Down
65 changes: 38 additions & 27 deletions src/pages/Pool/Provide/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { css } from "@emotion/react";
import iconProvide from "assets/icons/icon-provide.svg";
import Expand from "components/Expanded";
import { MOBILE_SCREEN_CLASS } from "constants/layout";
import Button from "components/Button";
import InputGroup from "./InputGroup";

enum FormKey {
Expand Down Expand Up @@ -41,6 +42,7 @@ function ProvidePage() {
const handleSubmit = useCallback<FormEventHandler<HTMLFormElement>>(
(event) => {
/* TODO: implement */
event.preventDefault();
},
[],
);
Expand Down Expand Up @@ -106,34 +108,43 @@ function ProvidePage() {
}}
style={{ marginBottom: 10 }}
/>
<Expand
label="Summary"
preview={
<div>
Preview
<br />
Preview
<br />
Preview
<br />
Preview
<br />
</div>
}
<div
css={css`
margin-bottom: 20px;
`}
>
Children
<br />
Children
<br />
Children
<br />
Children
<br />
Children
<br />
Children
<br />
</Expand>
<Expand
label="Summary"
preview={
<div>
Preview
<br />
Preview
<br />
Preview
<br />
Preview
<br />
</div>
}
>
Children
<br />
Children
<br />
Children
<br />
Children
<br />
Children
<br />
Children
<br />
</Expand>
</div>
<Button type="submit" size="large" variant="primary" block>
Add liquidity
</Button>
</form>
</Modal>
);
Expand Down

0 comments on commit 803a50e

Please sign in to comment.