Skip to content

Commit

Permalink
Further cosmetic changes
Browse files Browse the repository at this point in the history
  • Loading branch information
WRadoslaw committed Mar 25, 2024
1 parent 99589ad commit 7cf02e1
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,6 @@ export const BuyMarketTokenConditions = ({ setPrimaryButtonProps, onSubmit }: Bu
return (
<Container>
<FlexBox flow="column" gap={6} style={{ position: 'relative' }}>
<Text variant="h400" as="h4">
Holders terms
</Text>

<FlexBox flow="column" gap={2}>
{DETAILS.map((row) => (
<FlexBox key={row.title} flow="column">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export const CloseMarketButton = ({ channelId, disabled, fullWidth, tokenId }: C
<>
<Button
icon={<SvgActionNotForSale />}
variant="destructive-secondary"
variant="secondary"
disabled={disabled}
onClick={() => setShowModal(true)}
fullWidth={fullWidth}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ High Supply (100k):
</FormField>
<FormField
label="Tokens unlock schedule"
description="Add cliff & vesting for your own tokens to make your followers feel more secure when investing in your channel."
description="Tokens unlock schedule shows what % of the tokens can be transferred or sold on the market over time. Click through the options to see them on the preview chart."
tooltip={{
text:
'Different options presented below correspond to different level of token safety projected to your potential buyers. ' +
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const assuranceOptions = [
},
{
label: 'Custom',
caption: 'Set your own custom cliff, vesting and initial payout.',
caption: 'Set custom locked period, vesting and first payout.',
value: 'custom',
},
]
Expand All @@ -27,16 +27,20 @@ export const vestingOptions = [
name: 'No vesting',
},
{
value: '1',
name: '1 month',
value: '6',
name: '6 months',
},
{
value: '3',
name: '3 months',
value: '12',
name: '12 months',
},
{
value: '6',
name: '6 months',
value: '24',
name: '24 months',
},
{
value: '48',
name: '48 months',
},
]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,15 +104,15 @@ export const MarketDrawer = ({ show, onClose, tokenId }: CrtMarketSaleViewProps)
const successDetails = useMemo(
() => [
{
text: 'You can buy and sell your own tokens on the token market too!',
text: 'The more buyers you have had, the higher will be the profit when you are closing the market.',
icon: <SvgActionMarket />,
},
{
text: 'You don’t earn any royalties from the transactions of other members on the market.',
text: "You are no earning royalties from other people's transactions on your token.",
icon: <SvgActionWarning />,
},
{
text: 'Members can now buy and sale your tokens on your token page. Share the link to the market with them to let everyone know about it.',
text: 'Share the link to the token page with an open market so people can go and buy your token.',
icon: <SvgActionShoppingCart />,
actionNode: (
<TextButton
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,15 +109,15 @@ export const StartMarketModal = ({ onClose, show, tokenId }: StartMarketModalPro
const successDetails = useMemo(
() => [
{
text: 'You can buy and sell your own tokens on the token market too!',
text: 'The more buyers you have had, the higher will be the profit when you are closing the market.',
icon: <SvgActionMarket />,
},
{
text: "You are not earning royalties from other people's transactions on your token.",
text: "You are no earning royalties from other people's transactions on your token.",
icon: <SvgActionWarning />,
},
{
text: 'Share the link to the token page with an open market so people can go and buy your token.',
text: 'Share the link to the token page with an open market so people can go and buy your token.',
icon: <SvgActionShoppingCart />,
actionNode: (
<TextButton
Expand Down Expand Up @@ -169,9 +169,9 @@ export const StartMarketModal = ({ onClose, show, tokenId }: StartMarketModalPro
<FlexBox flow="column" gap={6}>
<FlexBox flow="column" gap={2}>
<Text variant="t200" as="p" color="colorText">
When the price goes up you can sell your tokens at a profit. The more buyers you have had, the higher will
be the profit when you are closing the market. However to close the market you'd need to sell all of the
tokens purchased by others from the initial supply you minted for yourself already.
When someone makes the purchase on the market, new tokens are minted and price goes up. To close the
market you need to return the minted tokens back to the market by selling the ones you already own. The
more people purchased your token before you close the market, the higher the profits when closing.
</Text>
</FlexBox>
<FlexBox flow="column" gap={2}>
Expand Down
9 changes: 9 additions & 0 deletions packages/atlas/src/views/viewer/ChannelView/ChannelView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,15 @@ export const ChannelView: FC = () => {
>
Manage videos
</StyledButton>
{!!channel?.creatorToken?.token.id && (
<StyledButton
variant="secondary"
onClick={() => id && setActiveChannel(id)}
to={absoluteRoutes.studio.crtDashboard()}
>
Manage token
</StyledButton>
)}
</>
) : (
<>
Expand Down

0 comments on commit 7cf02e1

Please sign in to comment.