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,
|
IconBaselineDensitySmall,
|
||||||
IconBell,
|
IconBell,
|
||||||
IconBolt,
|
IconBolt,
|
||||||
|
IconBook2,
|
||||||
IconBox,
|
IconBox,
|
||||||
IconBrandGithub,
|
IconBrandGithub,
|
||||||
IconBrandGoogle,
|
IconBrandGoogle,
|
||||||
|
|||||||
@ -1,3 +1,4 @@
|
|||||||
|
import { SettingsHeaderContainer } from '@/settings/components/SettingsHeaderContainer';
|
||||||
import { SettingsPageContainer } from '@/settings/components/SettingsPageContainer';
|
import { SettingsPageContainer } from '@/settings/components/SettingsPageContainer';
|
||||||
import { IconSettings } from '@/ui/display/icon';
|
import { IconSettings } from '@/ui/display/icon';
|
||||||
import { SubMenuTopBarContainer } from '@/ui/layout/page/SubMenuTopBarContainer';
|
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 { SettingsDevelopersApiKeys } from '~/pages/settings/developers/api-keys/SettingsDevelopersApiKeys';
|
||||||
import { SettingsDevelopersWebhooks } from '~/pages/settings/developers/webhooks/SettingsDevelopersWebhooks';
|
import { SettingsDevelopersWebhooks } from '~/pages/settings/developers/webhooks/SettingsDevelopersWebhooks';
|
||||||
|
|
||||||
|
import { ReadDocumentationButton } from './components/ReadDocumentationButton';
|
||||||
|
|
||||||
export const SettingsDevelopers = () => {
|
export const SettingsDevelopers = () => {
|
||||||
return (
|
return (
|
||||||
<SubMenuTopBarContainer Icon={IconSettings} title="Settings">
|
<SubMenuTopBarContainer Icon={IconSettings} title="Settings">
|
||||||
<SettingsPageContainer>
|
<SettingsPageContainer>
|
||||||
<Breadcrumb links={[{ children: 'Developers' }]} />
|
<SettingsHeaderContainer>
|
||||||
|
<Breadcrumb links={[{ children: 'Developers' }]} />
|
||||||
|
<ReadDocumentationButton />
|
||||||
|
</SettingsHeaderContainer>
|
||||||
<SettingsDevelopersApiKeys />
|
<SettingsDevelopersApiKeys />
|
||||||
<SettingsDevelopersWebhooks />
|
<SettingsDevelopersWebhooks />
|
||||||
</SettingsPageContainer>
|
</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