chore: add and run prettier
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
import React, { PropsWithChildren } from 'react';
|
||||
import { Tooltip } from '@contentstack/venus-components';
|
||||
import React, { PropsWithChildren } from "react"
|
||||
import { Tooltip } from "@contentstack/venus-components"
|
||||
|
||||
type EmbedBtnProps = PropsWithChildren & {
|
||||
content: string;
|
||||
onClick: (e: unknown) => void;
|
||||
title: string;
|
||||
};
|
||||
content: string
|
||||
onClick: (e: unknown) => void
|
||||
title: string
|
||||
}
|
||||
|
||||
export default function EmbedBtn({
|
||||
content,
|
||||
@@ -19,13 +19,13 @@ export default function EmbedBtn({
|
||||
id={title}
|
||||
type="button"
|
||||
onClick={(e) => {
|
||||
e?.preventDefault();
|
||||
e?.stopPropagation();
|
||||
onClick(e);
|
||||
e?.preventDefault()
|
||||
e?.stopPropagation()
|
||||
onClick(e)
|
||||
}}
|
||||
>
|
||||
{children}
|
||||
</button>
|
||||
</Tooltip>
|
||||
);
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user