Skip to content

Commit

Permalink
Hide image URL in token based creator.
Browse files Browse the repository at this point in the history
  • Loading branch information
NoahSaso committed Oct 27, 2023
1 parent 440e147 commit 991af0e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import { constSelector, useRecoilValueLoadable } from 'recoil'
import { genericTokenSelector, nativeSupplySelector } from '@dao-dao/state'
import {
Button,
ImageSelector,
InputErrorMessage,
InputLabel,
Loader,
Expand Down Expand Up @@ -42,7 +41,6 @@ import {

import { TokenBasedCreator } from '.'
import { EntityDisplay } from '../../components/EntityDisplay'
import { Trans } from '../../components/Trans'
import { useWallet } from '../../hooks/useWallet'
import { TierCard } from './TierCard'
import { CreatorData, GovernanceTokenType } from './types'
Expand Down Expand Up @@ -302,7 +300,8 @@ export const GovernanceConfigurationInput = ({

<div className="flex flex-col items-stretch sm:flex-row">
<div className="flex flex-col items-stretch sm:flex-row">
<div className="flex flex-col items-center gap-5 py-6 px-10">
{/* TODO(tokenfactory-image): add back in once token factory supports URI metadata */}
{/* <div className="flex flex-col items-center gap-5 py-6 px-10 sm:border-border-secondary sm:border-r">
<InputLabel name={t('form.image')} />
<ImageSelector
Trans={Trans}
Expand All @@ -313,8 +312,8 @@ export const GovernanceConfigurationInput = ({
size={40}
watch={watch}
/>
</div>
<div className="flex flex-col gap-5 border-y border-border-secondary py-6 px-8 sm:border-y-0 sm:border-x">
</div> */}
<div className="flex flex-col gap-5 border-y border-border-secondary py-6 px-8 sm:border-y-0 sm:border-r">
<InputLabel name={t('form.symbol')} />
<div className="flex flex-col">
<div className="flex flex-row items-center gap-2">
Expand Down
8 changes: 7 additions & 1 deletion packages/stateful/creators/TokenBased/mutate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,13 @@ export const mutate: DaoCreatorMutate<CreatorData> = (
{
tiers,
tokenType,
newInfo: { initialSupply, imageUrl, symbol, name },
newInfo: {
initialSupply,
// TODO(tokenfactory-image): add back in once token factory supports URI metadata
imageUrl: _imageUrl,
symbol,
name,
},
existingTokenDenom,
unstakingDuration,
activeThreshold,
Expand Down

0 comments on commit 991af0e

Please sign in to comment.