Skip to content

Commit

Permalink
Merge pull request #417 from GenaDrop/staging
Browse files Browse the repository at this point in the history
Staging
  • Loading branch information
Jikugodwill authored Aug 27, 2024
2 parents 6c12c60 + 92e1f79 commit 8f2a7cd
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 51 deletions.
53 changes: 25 additions & 28 deletions apps/Mintbase/widget/Mintbase/App/LaunchPad/Contracts.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ const cardsData = [
},
{
icon: documentSvg,
buttonName: "Deploy NFT Contract",
buttonName: "Deploy NFT Store",
learnLink:
"https://docs.mintbase.xyz/creator/creating-nfts/deploy-contract",
},
Expand Down Expand Up @@ -302,35 +302,32 @@ const Contracts = () => {

return (
<Root>
{!stores.length &&
!isHome(
<div
className="text-center mx-auto mt-100"
style={{ padding: "200px 0" }}
>
<div className="d-flex flex-column align-items-center gap-4 create-area">
<div>
<h3 className="mb-2">
Deploy your own store to mint NFTs from
</h3>{" "}
<p>
You don't have any stores yet — let's create your first one!
Or refresh the page if you just deployed (could take up to 5
minutes).
</p>
</div>
<Widget
src={`${config_account}/widget/Mintbase.MbButton`}
props={{
label: "New Store",
onClick: createStoreHandler,
size: "big",
isDarkModeOn,
}}
/>
{!stores.length && !isHome && (
<div
className="text-center mx-auto mt-100"
style={{ padding: "50px 0" }}
>
<div className="d-flex flex-column align-items-center gap-4 create-area">
<div>
<h3 className="mb-2">Deploy your own store to mint NFTs from</h3>{" "}
<p>
You don't have any stores yet — let's create your first one! Or
refresh the page if you just deployed (could take up to 5
minutes).
</p>
</div>
<Widget
src={`${config_account}/widget/Mintbase.MbButton`}
props={{
label: "New Store",
onClick: createStoreHandler,
size: "big",
isDarkModeOn,
}}
/>
</div>
)}
</div>
)}
<>
<div className="top">
<div className="lhs">Your Contracts </div>
Expand Down
57 changes: 34 additions & 23 deletions apps/Mintbase/widget/Mintbase/NFT/Index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ const NFTCard = ({ data, isDarkModeOn, accountId, connectedDao }) => {
}
.top-rest {
position: absolute;
z-index: 1;
z-index: 1000000;
}
div {
gap: 10px;
Expand Down Expand Up @@ -421,6 +421,39 @@ const NFTCard = ({ data, isDarkModeOn, accountId, connectedDao }) => {
"https://ipfs.near.social/ipfs/bafkreiajgp5bmkidwesy2d6tsbdkhyfzjtom2wse2sjcwii227lt5audvq";
return (
<CardContainer>
<Top>
<Link
to={href({
widgetSrc: "${config_account}/widget/Mintbase.App.Index",
params: {
page: "nftDetails",
contractId: data?.nft_contract_id,
metadataId: data?.metadata_id,
},
})}
>
<div className="nft-image">
<img src={nftImage} />
</div>
</Link>
<div className="top-rest">
{data?.owner || data?.minter === context.accountId ? (
<div>
<button onClick={() => setModalState("SELL")}>SELL</button>
<button onClick={() => setModalState("OPTIONS")}>
{dotsSvg}
</button>
</div>
) : data?.minter === connectedDao?.address &&
connectedDao?.permission ? (
<div>
<button onClick={() => setModalState("SELL")}>SELL</button>
</div>
) : (
""
)}
</div>
</Top>
<Link
to={href({
widgetSrc: "${config_account}/widget/Mintbase.App.Index",
Expand All @@ -431,28 +464,6 @@ const NFTCard = ({ data, isDarkModeOn, accountId, connectedDao }) => {
},
})}
>
<Top>
<div className="nft-image">
<img src={nftImage} />
</div>
<div className="top-rest">
{data?.owner || data?.minter === context.accountId ? (
<div>
<button onClick={() => setModalState("SELL")}>SELL</button>
<button onClick={() => setModalState("OPTIONS")}>
{dotsSvg}
</button>
</div>
) : data?.minter === connectedDao?.address &&
connectedDao?.permission ? (
<div>
<button onClick={() => setModalState("SELL")}>SELL</button>
</div>
) : (
""
)}
</div>
</Top>
<Bottom>
<p className="contract">{data?.nft_contract_id}</p>
<div>
Expand Down

0 comments on commit 8f2a7cd

Please sign in to comment.