openreplay/frontend/app/components/Client/Integrations/BugsnagForm/BugsnagForm.js
2021-05-01 15:12:01 +05:30

24 lines
No EOL
629 B
JavaScript

import { tokenRE } from 'Types/integrations/bugsnagConfig';
import IntegrationForm from '../IntegrationForm';
import ProjectListDropdown from './ProjectListDropdown';
const BugsnagForm = (props) => (
<IntegrationForm
{ ...props }
name="bugsnag"
formFields={[ {
key: "authorizationToken",
label: "Authorisation Token",
}, {
key: "bugsnagProjectId",
label: "Project",
checkIfDisplayed: config => tokenRE.test(config.authorizationToken),
component: ProjectListDropdown,
}
]}
/>
);
BugsnagForm.displayName = "BugsnagForm";
export default BugsnagForm;