-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* reorder files and add some design updates * added projects from potlock * updated create modal to potlock project * minor fixes * minor fixes * revert connect change * fix tasks tab
- Loading branch information
1 parent
678cf51
commit dad3ebd
Showing
12 changed files
with
1,028 additions
and
103 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 was deleted.
Oops, something went wrong.
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
60 changes: 60 additions & 0 deletions
60
apps/builddao/widget/components/modals/projects/ImportAndCreate.jsx
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,60 @@ | ||
const { Modal, Button } = VM.require("${config_account}/widget/components") || { | ||
Modal: () => <></>, | ||
Button: () => <></>, | ||
}; | ||
|
||
const showModal = props.showModal; | ||
const toggleModal = props.toggleModal; | ||
const toggle = props.toggle; | ||
const bootstrapTheme = props.bootstrapTheme || "dark"; | ||
const onClickCreate = props.onClickCreate || (() => {}); | ||
const onClickImport = props.onClickImport || (() => {}); | ||
|
||
const Item = ({ title, description, src, onClick }) => { | ||
return ( | ||
<div className="d-flex gap-2 pointer-cursor" onClick={onClick}> | ||
<img src={src} height={40} width={40} /> | ||
<div className="d-flex flex-column"> | ||
<h6>{title}</h6> | ||
<div className="text-sm">{description}</div> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
const Container = styled.div` | ||
.pointer-cursor { | ||
cursor: pointer; | ||
} | ||
.text-sm { | ||
font-size: 13px; | ||
} | ||
`; | ||
return ( | ||
<Modal | ||
open={showModal} | ||
title={"Create Project"} | ||
onOpenChange={toggleModal} | ||
toggle={toggle} | ||
> | ||
<Container className="d-flex flex-column gap-4 my-2"> | ||
<Item | ||
title="Create my own project" | ||
description="Create your own completely new project, customize it your way!" | ||
src="https://ipfs.near.social/ipfs/bafkreidbfu7uxtr4is7wxileg3mrbajve6cgkfmrqemc6pxsr6nnczz7ly" | ||
onClick={onClickCreate} | ||
/> | ||
<Item | ||
title="Import from Potlock" | ||
description="Import your projects from the Potlock platform." | ||
src="https://ipfs.near.social/ipfs/bafkreifk42ibqsg5sfky5tlhkfty6rkup5leqite5koenhesnuwq55kufi" | ||
onClick={onClickImport} | ||
/> | ||
<div className="my-1 d-flex justify-content-center"> | ||
<Button variant="primary" onClick={toggleModal}> | ||
Cancel | ||
</Button> | ||
</div> | ||
</Container> | ||
</Modal> | ||
); |
Oops, something went wrong.