Skip to content

Commit

Permalink
use onCopy instead of onClick to avoid overwriting copy (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
elliotstokes committed May 2, 2023
1 parent 8db99f4 commit 052fa2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/SchemaView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const SchemaView: FC<SchemaViewProps> = ({ rawSchema }) => {
<Box>
<Box mb={2} display={"flex"} alignItems={"center"} columnGap={1}>
<Typography variant="h3semibold">JSON Schema</Typography>
<Copy onClick={handleOnCopy} text={schemaText}>
<Copy onCopy={handleOnCopy} text={schemaText}>
[Copy schema to clipboard]
</Copy>
</Box>
Expand Down

0 comments on commit 052fa2f

Please sign in to comment.