-
Notifications
You must be signed in to change notification settings - Fork 52
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
base: dev
Are you sure you want to change the base?
Conversation
…add gentk management (cancel, list, burn, transfer)
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
loading={contractLoading} | ||
success={success} | ||
error={contractError} | ||
successMessage="Your gentk has been burn" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
successMessage="Your gentk has been burn" | |
successMessage="Your gentk has been burned" |
loading={contractLoading} | ||
success={success} | ||
error={contractError} | ||
successMessage="Your Gentk has been transfered" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<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> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<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") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
There was a problem hiding this comment.
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?.({ |
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
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]` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return `You have burn your gentk "${objkt.name}" [insert dramatic sound effect]` | |
return `You have burned your gentk "${objkt.name}"` |
@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) |
No description provided.