Skip to content

Commit

Permalink
Minor
Browse files Browse the repository at this point in the history
  • Loading branch information
polarker committed Aug 29, 2023
1 parent 12dcece commit 995f0d2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
7 changes: 4 additions & 3 deletions src/components/Misc/CopyTextarea.tsx
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
import { Button, CopyButton, MantineColor, Tooltip } from '@mantine/core'
import { Button, ButtonProps, CopyButton, MantineColor, Tooltip } from '@mantine/core'

interface CopyTextareaProps {
value: string
color?: MantineColor
variant?: ButtonProps['variant']
}

function CopyTextarea({ value, color }: CopyTextareaProps) {
function CopyTextarea({ value, color, variant }: CopyTextareaProps) {
return (
<CopyButton value={value} timeout={1000}>
{({ copied, copy }) => (
<Tooltip.Floating label={copied ? 'Copied' : 'Copy'} position="right">
<Button
variant="subtle"
variant={variant || 'subtle'}
color={color}
onClick={copy}
styles={{
Expand Down
10 changes: 9 additions & 1 deletion src/components/Multisig/BuildMultisigTx.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ function BuildMultisigTx() {
</Anchor>
</Input.Description>
<Space h="lg" />
<CopyTextarea value={form.values.unsignedTx ?? ''} />
<CopyTextarea value={form.values.unsignedTx ?? ''} variant='outline'/>
<Group mt="xl" position="apart" mx="lg">
<Button
onClick={() => {
Expand Down Expand Up @@ -450,6 +450,14 @@ function BuildMultisigTx() {
onStepClick={(s) => form.setValues({ step: s })}
orientation="vertical"
allowNextStepsSelect={false}
styles={(theme) => ({
stepIcon: {
backgroundColor: theme.fn.variant({
variant: 'light',
color: theme.primaryColor,
}).background,
},
})}
>
<Stepper.Step
label="Create"
Expand Down

0 comments on commit 995f0d2

Please sign in to comment.