Skip to content

The open-source AI receptionist for businesses. Answers every call, books the appointment and hands over to a person when needed. You own the code and the data.

Partner keys: How to get a key is the shared FoldOut again (PR 1923)

Janikcccbaed9760b
diff --git a/apps/web/src/partner/PartnerKeys.tsx b/apps/web/src/partner/PartnerKeys.tsx
index 3389dcfa..e2543faa 100644
--- a/apps/web/src/partner/PartnerKeys.tsx
+++ b/apps/web/src/partner/PartnerKeys.tsx
@@ -28,6 +28,7 @@ import { i18n } from '../i18n/index.tsx'
import { StepUpFields, StepUpSubmit, useKeyStepUp } from '../settings/account/KeyStepUp.tsx'
import { callAction } from '../settings/settings-api.ts'
import { Select } from '../ui/controls.tsx'
+import { FoldOut } from '../ui/FoldOut.tsx'
import { Card, Dialog, FormField, SecretInput } from '../ui/form.tsx'
import { Button, Note } from '../ui/kit.tsx'
import { Loading, SkeletonRows } from '../ui/LoadStates.tsx'
@@ -348,8 +349,7 @@ function ConnectKey({
{/* A key, not a password: never saved as this site's login (SecretInput). */}
<SecretInput id="partner-key-value" value={key} invalid={!!stepUp.error} onChange={setKey} />
</FormField>
- <details className="adm-guide">
- <summary>{t('admin.providerDialog.howToGetKey')}</summary>
+ <FoldOut className="adm-guide" summary={t('admin.providerDialog.howToGetKey')}>
<ol className="adm-guide-steps">
{guide.steps.map(step => (
<li key={step}>{step}</li>
@@ -366,7 +366,7 @@ function ConnectKey({
)}
{guide.cost}
</p>
- </details>
+ </FoldOut>
<StepUpFields
stepUp={stepUp}
id="partner-key-code"