Skip to content
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

feat: add list to user collection, add new contracts transfer, burn, add gentk management (cancel, list, burn, transfer) #739

Draft
wants to merge 4 commits into
base: dev
Choose a base branch
from

Conversation

GemN
Copy link
Contributor

@GemN GemN commented May 3, 2023

No description provided.

…add gentk management (cancel, list, burn, transfer)
@GemN GemN self-assigned this May 3, 2023
@vercel
Copy link

vercel bot commented May 3, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
fxhash ❌ Failed (Inspect) Jun 1, 2023 5:14pm

@GemN GemN marked this pull request as draft May 3, 2023 16:53
loading={contractLoading}
success={success}
error={contractError}
successMessage="Your gentk has been burn"
Copy link
Contributor

@louisholley louisholley May 9, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
successMessage="Your gentk has been burn"
successMessage="Your gentk has been burned"

loading={contractLoading}
success={success}
error={contractError}
successMessage="Your Gentk has been transfered"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
successMessage="Your Gentk has been transfered"
successMessage="Your Gentk has been transferred"

width="530px"
>
<div className={style.container}>
<div>Which price would you like to set your listing ?</div>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<div>Which price would you like to set your listing ?</div>
<div>What price would you like to set for your listing?</div>

width="530px"
>
<div className={style.container}>
<div>Which price would you like to list your gentk for ?</div>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<div>Which price would you like to list your gentk for ?</div>
<div>What price would you like to set for your listing?</div>

interface Props {
user: User
}
export function UserCollectionGentks({ user }: Props) {
const { user: userLogged } = useContext(UserContext)
const [displayMode, setDisplayMode] = useState<"list" | "grid">("list")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
const [displayMode, setDisplayMode] = useState<"list" | "grid">("list")
const [displayMode, setDisplayMode] = useState<"list" | "grid">("grid")

i think we should set grid as default to avoid too much change in the UI

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it was during the WIP, easier to work grid enabled

@@ -134,77 +120,36 @@ export function UserCollectionGentks({ user }: Props) {
if (window.scrollY > top + 10) {
window.scrollTo(0, top)
}

refetch?.({
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we not need this refetch?

@@ -22,14 +22,14 @@ const TabWrapper = ({ children, onClick, ...props }: TabWrapperProps) => (

interface Props {
user: User
activeTab: "gentk" | "articles" | "tickets"
activeTab: "gentk" | "articles" | "tickets" | "manage"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what's manage here? or not implemented yet?


success(): string {
const { objkt } = this.params
return `You have burn your gentk "${objkt.name}" [insert dramatic sound effect]`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
return `You have burn your gentk "${objkt.name}" [insert dramatic sound effect]`
return `You have burned your gentk "${objkt.name}"`

@louisholley
Copy link
Contributor

looks great, awesome work! i think we may wanna iron out the styles for this list view a bit:

image

@GemN
Copy link
Contributor Author

GemN commented Jun 1, 2023

@louisholley all changes are valid, to note than current BurnToken and BurnTokenV3 have the sentence "[insert dramatic music] hence why I did a similar touch on BurnGentk.

Tho the branch is still WIP (need batch actions)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants