diff --git a/shared/editor/embeds/Airtable.tsx b/shared/editor/embeds/Airtable.tsx index 532c3836d..887c4f03b 100644 --- a/shared/editor/embeds/Airtable.tsx +++ b/shared/editor/embeds/Airtable.tsx @@ -4,19 +4,19 @@ import { EmbedProps as Props } from "."; const URL_REGEX = new RegExp("https://airtable.com/(?:embed/)?(shr.*)$"); -export default class Airtable extends React.Component { - static ENABLED = [URL_REGEX]; - - render() { - const { matches } = this.props.attrs; - const shareId = matches[1]; - return ( - - ); - } +function Airtable(props: Props) { + const { matches } = props.attrs; + const shareId = matches[1]; + return ( + + ); } + +Airtable.ENABLED = [URL_REGEX]; + +export default Airtable;