Added a 'Read documentation' button in the Developers tab in settings (#4249)
This commit is contained in:
committed by
GitHub
parent
fb439e3045
commit
b762be3f93
@ -17,6 +17,7 @@ export {
|
||||
IconBaselineDensitySmall,
|
||||
IconBell,
|
||||
IconBolt,
|
||||
IconBook2,
|
||||
IconBox,
|
||||
IconBrandGithub,
|
||||
IconBrandGoogle,
|
||||
|
||||
@ -1,3 +1,4 @@
|
||||
import { SettingsHeaderContainer } from '@/settings/components/SettingsHeaderContainer';
|
||||
import { SettingsPageContainer } from '@/settings/components/SettingsPageContainer';
|
||||
import { IconSettings } from '@/ui/display/icon';
|
||||
import { SubMenuTopBarContainer } from '@/ui/layout/page/SubMenuTopBarContainer';
|
||||
@ -5,11 +6,16 @@ import { Breadcrumb } from '@/ui/navigation/bread-crumb/components/Breadcrumb';
|
||||
import { SettingsDevelopersApiKeys } from '~/pages/settings/developers/api-keys/SettingsDevelopersApiKeys';
|
||||
import { SettingsDevelopersWebhooks } from '~/pages/settings/developers/webhooks/SettingsDevelopersWebhooks';
|
||||
|
||||
import { ReadDocumentationButton } from './components/ReadDocumentationButton';
|
||||
|
||||
export const SettingsDevelopers = () => {
|
||||
return (
|
||||
<SubMenuTopBarContainer Icon={IconSettings} title="Settings">
|
||||
<SettingsPageContainer>
|
||||
<Breadcrumb links={[{ children: 'Developers' }]} />
|
||||
<SettingsHeaderContainer>
|
||||
<Breadcrumb links={[{ children: 'Developers' }]} />
|
||||
<ReadDocumentationButton />
|
||||
</SettingsHeaderContainer>
|
||||
<SettingsDevelopersApiKeys />
|
||||
<SettingsDevelopersWebhooks />
|
||||
</SettingsPageContainer>
|
||||
|
||||
@ -0,0 +1,17 @@
|
||||
import { IconBook2 } from '@/ui/display/icon';
|
||||
import { Button } from '@/ui/input/button/components/Button';
|
||||
|
||||
export const ReadDocumentationButton = () => {
|
||||
return (
|
||||
<Button
|
||||
title="Read documentation"
|
||||
variant="primary"
|
||||
accent="default"
|
||||
size="small"
|
||||
Icon={IconBook2}
|
||||
onClick={() => {
|
||||
window.open('https://docs.twenty.com');
|
||||
}}
|
||||
></Button>
|
||||
);
|
||||
};
|
||||
Reference in New Issue
Block a user