|
1 | | -import { |
2 | | - ApiKeysCreateCallout, |
3 | | - ApiKeysFeedbackBanner, |
4 | | -} from 'components/interfaces/APIKeys/ApiKeysIllustrations' |
5 | | -import { useApiKeysVisibility } from 'components/interfaces/APIKeys/hooks/useApiKeysVisibility' |
6 | | -import { PublishableAPIKeys } from 'components/interfaces/APIKeys/PublishableAPIKeys' |
7 | | -import { SecretAPIKeys } from 'components/interfaces/APIKeys/SecretAPIKeys' |
8 | | -import ApiKeysLayout from 'components/layouts/APIKeys/APIKeysLayout' |
9 | | -import DefaultLayout from 'components/layouts/DefaultLayout' |
10 | | -import SettingsLayout from 'components/layouts/ProjectSettingsLayout/SettingsLayout' |
11 | | -import { DisableInteraction } from 'components/ui/DisableInteraction' |
12 | | -import type { NextPageWithLayout } from 'types' |
13 | | -import { Separator } from 'ui' |
| 1 | +// This page is currently not in use. It was the original page for API Keys settings, but has been replaced by a new page at the same route. The old page is kept here for reference and potential future use, but is not exported or used in the app. |
| 2 | +// const ApiKeysLegacyPage: NextPageWithLayout = () => { |
| 3 | +// return <DisplayApiSettings showTitle={false} showNotice={false} /> |
| 4 | +// } |
14 | 5 |
|
15 | | -const ApiKeysNewPage: NextPageWithLayout = () => { |
16 | | - const { shouldDisableUI, canInitApiKeys } = useApiKeysVisibility() |
| 6 | +// duplicate of the new page at the same route, but with the old API keys display component. This is kept for reference and potential future use, but is not exported or used in the app. |
| 7 | +// import { |
| 8 | +// ApiKeysCreateCallout, |
| 9 | +// ApiKeysFeedbackBanner, |
| 10 | +// } from 'components/interfaces/APIKeys/ApiKeysIllustrations' |
| 11 | +// import { useApiKeysVisibility } from 'components/interfaces/APIKeys/hooks/useApiKeysVisibility' |
| 12 | +// import { PublishableAPIKeys } from 'components/interfaces/APIKeys/PublishableAPIKeys' |
| 13 | +// import { SecretAPIKeys } from 'components/interfaces/APIKeys/SecretAPIKeys' |
| 14 | +// import ApiKeysLayout from 'components/layouts/APIKeys/APIKeysLayout' |
| 15 | +// import DefaultLayout from 'components/layouts/DefaultLayout' |
| 16 | +// import SettingsLayout from 'components/layouts/ProjectSettingsLayout/SettingsLayout' |
| 17 | +// import { DisableInteraction } from 'components/ui/DisableInteraction' |
| 18 | +// import type { NextPageWithLayout } from 'types' |
| 19 | +// import { Separator } from 'ui' |
17 | 20 |
|
18 | | - return ( |
19 | | - <> |
20 | | - {canInitApiKeys && <ApiKeysCreateCallout />} |
21 | | - <ApiKeysFeedbackBanner /> |
22 | | - <DisableInteraction disabled={shouldDisableUI} className="flex flex-col gap-8"> |
23 | | - <PublishableAPIKeys /> |
24 | | - <Separator /> |
25 | | - <SecretAPIKeys /> |
26 | | - </DisableInteraction> |
27 | | - </> |
28 | | - ) |
29 | | -} |
| 21 | +// const ApiKeysNewPage: NextPageWithLayout = () => { |
| 22 | +// const { shouldDisableUI, canInitApiKeys } = useApiKeysVisibility() |
30 | 23 |
|
31 | | -ApiKeysNewPage.getLayout = (page) => ( |
32 | | - <DefaultLayout> |
33 | | - <SettingsLayout> |
34 | | - <ApiKeysLayout>{page}</ApiKeysLayout> |
35 | | - </SettingsLayout> |
36 | | - </DefaultLayout> |
37 | | -) |
| 24 | +// return ( |
| 25 | +// <> |
| 26 | +// {canInitApiKeys && <ApiKeysCreateCallout />} |
| 27 | +// <ApiKeysFeedbackBanner /> |
| 28 | +// <DisableInteraction disabled={shouldDisableUI} className="flex flex-col gap-8"> |
| 29 | +// <PublishableAPIKeys /> |
| 30 | +// <Separator /> |
| 31 | +// <SecretAPIKeys /> |
| 32 | +// </DisableInteraction> |
| 33 | +// </> |
| 34 | +// ) |
| 35 | +// } |
38 | 36 |
|
39 | | -export default ApiKeysNewPage |
| 37 | +// ApiKeysNewPage.getLayout = (page) => ( |
| 38 | +// <DefaultLayout> |
| 39 | +// <SettingsLayout> |
| 40 | +// <ApiKeysLayout>{page}</ApiKeysLayout> |
| 41 | +// </SettingsLayout> |
| 42 | +// </DefaultLayout> |
| 43 | +// ) |
| 44 | + |
| 45 | +// export default ApiKeysNewPage |
0 commit comments