chore: RealtimeBoard -> Miro

closes #996
This commit is contained in:
Tom Moor
2019-07-25 22:56:20 -07:00
parent 5ec2c3c7a0
commit 9cbc9aaad6
8 changed files with 22 additions and 17 deletions

26
app/embeds/Miro.js Normal file
View File

@@ -0,0 +1,26 @@
// @flow
import * as React from 'react';
import Frame from './components/Frame';
const URL_REGEX = /^https:\/\/(?:realtimeboard|miro).com\/app\/board\/(.*)$/;
type Props = {
url: string,
matches: string[],
};
export default class RealtimeBoard extends React.Component<Props> {
static ENABLED = [URL_REGEX];
render() {
const { matches } = this.props;
const boardId = matches[1];
return (
<Frame
src={`https://realtimeboard.com/app/embed/${boardId}`}
title={`RealtimeBoard (${boardId})`}
/>
);
}
}