Skip to content

Commit

Permalink
Merge pull request #1326 from flmel/fix/tools-page
Browse files Browse the repository at this point in the history
fixes
  • Loading branch information
gagdiez authored Oct 14, 2024
2 parents 1393297 + b2ba3ee commit f3162e6
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
8 changes: 7 additions & 1 deletion src/components/tools/FungibleToken/CreateTokenForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,13 @@ const CreateTokenForm = ({ reload }: { reload: (delay: number) => void }) => {
label="Total Supply"
placeholder="e.g. 1000"
error={errors.total_supply?.message}
{...register('total_supply', { required: 'Total supply is required' })}
{...register('total_supply', {
required: 'Total supply is required',
pattern: {
value: /^[1-9][0-9]*$/,
message: 'Total supply must be a whole number greater than 0',
},
})}
disabled={!signedAccountId}
/>
<Input
Expand Down
4 changes: 2 additions & 2 deletions src/pages/tools.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -133,13 +133,13 @@ const ToolsPage: NextPageWithLayout = () => {

return (
<Section grow="available" style={{ background: 'var(--sand3)' }}>
<Container size="s">
<Container size="m" style={{ display: 'flex', justifyContent: 'center' }}>
<Flex stack gap="l">
<Text as="h1" size="text-2xl">
Tools
</Text>

<Card style={{ paddingTop: 0 }}>
<Card style={{ paddingTop: 0, width: 'min-content' }}>
<Tabs.Root value={selectedTab}>
<Tabs.List style={{ marginBottom: 'var(--gap-m)' }}>
<Tabs.Trigger href="?tab=ft" value="ft">
Expand Down
1 change: 1 addition & 0 deletions src/styles/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
:root {
--gateway-page-container-padding-y: 2rem;
--gateway-page-container-padding-x: 1rem;
scrollbar-gutter: stable;
}

p,
Expand Down

0 comments on commit f3162e6

Please sign in to comment.