base webhooks page was created

This commit is contained in:
Vladimir Khvan 2023-02-21 13:26:48 +05:00
parent 742f0a26c2
commit 6b403d8a4e

View File

@ -0,0 +1,35 @@
import Button from '@docspace/components/button';
import React, { useState } from 'react';
import ColorSchemeDialog from './sub-components/colorSchemeDialog';
import { Info } from './sub-components/Info';
import { WebhooksList } from './sub-components/WebhooksList';
const Webhooks = () => {
const [showColorSchemeDialog, setShowColorSchemeDialog] = useState(true);
const onClickColor = () => {};
const onCloseColorSchemeDialog = () => {
setShowColorSchemeDialog(false);
};
return (
<div>
<Info />
<Button
label="Create webhook"
primary
size="small"
onClick={() => setShowColorSchemeDialog(true)}
/>
<WebhooksList />
<ColorSchemeDialog
onClickColor={onClickColor}
currentColorAccent={null}
currentColorButtons={null}
visible={showColorSchemeDialog}
onClose={onCloseColorSchemeDialog}
viewMobile={false}
/>
</div>
);
};
export default Webhooks;