fix(openapi): fix usage tabs

This commit is contained in:
Fuma Nama
2026-06-20 10:25:04 +09:00
parent 58c2574bf1
commit 4fe2821cbb
6 changed files with 18 additions and 14 deletions
+2 -4
View File
@@ -6,15 +6,13 @@ Before submitting a pull request, there are some guidelines you should notice.
### Guidelines
This project is a monorepo using Turborepo, pnpm and
[Changesets](https://github.com/changesets/changesets).
<!-- TODO: update this, will be using Tegami instead -->
[Tegami](https://tegami.fuma-nama.dev).
#### Before Submitting
- Check if there's other similar PRs.
- Format your code with `pnpm run format`.
- Add changesets with `pnpm changeset`, which documents the changes you've made.
- Add changelogs with `pnpm tegami`, which documents the changes you've made.
- Run unit tests with `pnpm test` and update snapshots if necessary.
#### New Feature
+6
View File
@@ -0,0 +1,6 @@
---
packages:
npm:fumadocs-openapi: patch
---
### Fix `style` warning in usage tabs
+1 -1
View File
@@ -20,7 +20,7 @@
"oxfmt": "^0.55.0",
"oxlint": "^1.70.0",
"rimraf": "^6.1.3",
"tegami": "0.1.0-beta.1",
"tegami": "0.1.0-beta.2",
"tinyexec": "^1.2.4",
"turbo": "2.9.18",
"typescript": "^6.0.3",
@@ -110,8 +110,8 @@ function UsageTabsSelector() {
function renderItem(item: ExampleRequestItem) {
return (
<div>
<span className="font-medium text-sm">{item.name}</span>
<span className="text-fd-muted-foreground">{item.description}</span>
<p className="font-medium text-sm">{item.name}</p>
<p className="text-fd-muted-foreground">{item.description}</p>
</div>
);
}
@@ -121,7 +121,7 @@ function UsageTabsSelector() {
return (
<Select value={key} onValueChange={setKey}>
<SelectTrigger className="not-prose mb-2">
{selected && <SelectValue asChild>{renderItem(selected)}</SelectValue>}
{selected && <SelectValue>{renderItem(selected)}</SelectValue>}
</SelectTrigger>
<SelectContent>
{examples.map((item) => (
+5 -5
View File
@@ -21,8 +21,8 @@ importers:
specifier: ^6.1.3
version: 6.1.3
tegami:
specifier: 0.1.0-beta.1
version: 0.1.0-beta.1
specifier: 0.1.0-beta.2
version: 0.1.0-beta.2
tinyexec:
specifier: ^1.2.4
version: 1.2.4
@@ -14572,8 +14572,8 @@ packages:
[email protected]:
resolution: {integrity: sha512-eYE6iEI62Ni1H8oIa7KlDU6uQBtqr4Eajni3wX7rpfXD8ysFx8z0+dri+KWEPWpBsxXfxu58x/0jvTVT1ekOSg==}
[email protected].1:
resolution: {integrity: sha512-l3ON2+6EQEe1F+XbTx63hDOKFV/wAt5n5SaY0IBY1KBbkLclzPTOrni4QQ1Ep2JTniHrCDJypYCxyEzPpw5HtA==}
[email protected].2:
resolution: {integrity: sha512-mGFB4tBxrIw4dA/2iQ85n9sCB1dMTGPxRGScKnYlG9uMtV0QcOleqQ1qaBMepfgz+86W93BeV1+YJrASvAYHnQ==}
[email protected]:
resolution: {integrity: sha512-201R5j+sJpK8nFWwKVyNfZot8FaJbLZDq5evriVzbV1wDtSXDjRUDRfJzHpAaxFDMEhsZL1QkeqM61wgsS3KaQ==}
@@ -28061,7 +28061,7 @@ snapshots:
- bare-abort-controller
- react-native-b4a
[email protected].1:
[email protected].2:
dependencies:
'@clack/prompts': 1.5.1
commander: 15.0.0
+1 -1
View File
@@ -6,7 +6,7 @@ packages:
minimumReleaseAgeExclude:
- 'fuma-translate'
- '@fuma-translate/*'
- [email protected].1
- [email protected].2
- react-router
- '@react-router/*'
allowBuilds: