Skip to content

Commit

Permalink
minor refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
brillout committed Jun 25, 2024
1 parent 36e9f43 commit 5e7cf13
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
export { Integration }
export { IntegrationHelp }

import React from 'react'
import { assert } from '@brillout/docpress'
import { projectInfo } from '../utils'

function Integration({ toolTypeName }: { toolTypeName: string }) {
function IntegrationHelp({ toolTypeName }: { toolTypeName: string }) {
assert(toolTypeName)
return (
<>
Expand Down
2 changes: 1 addition & 1 deletion docs/components/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export * from './DataArchitecture'
export * from './UiFrameworkExtension'
export * from './Integration'
export * from './IntegrationHelp'
export * from './UseBati'
export * from './UseVikeExtension'
export { default as DefaultRouting } from './DefaultRouting.mdx'
Expand Down
4 changes: 2 additions & 2 deletions docs/pages/auth/+Page.mdx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Integration } from '../../components/Integration'
import { IntegrationHelp } from '../../components'
import { Link, RepoLink } from '@brillout/docpress'

## Integration
Expand Down Expand Up @@ -98,4 +98,4 @@ Common auth tools:
- [Passport.js](https://github.com/jaredhanson/passport)
- [Auth0](https://auth0.com/)

<Integration toolTypeName="authentication tool" />
<IntegrationHelp toolTypeName="authentication tool" />
4 changes: 2 additions & 2 deletions docs/pages/css-tools/+Page.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Integration, UiFrameworkExtension } from '../../components'
import { IntegrationHelp, UiFrameworkExtension } from '../../components'
import { Link } from '@brillout/docpress'

<Integration toolTypeName="CSS tool" />
<IntegrationHelp toolTypeName="CSS tool" />

For example:
- <Link href="/tailwind-css" />
Expand Down
4 changes: 2 additions & 2 deletions docs/pages/ui-frameworks/+Page.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Integration } from '../../components/Integration'
import { IntegrationHelp } from '../../components/IntegrationHelp'

<Integration toolTypeName="UI framework" />
<IntegrationHelp toolTypeName="UI framework" />

> The *UI framework* denotes the tool that renders your UI components. For example:
> - [React](/react)
Expand Down

0 comments on commit 5e7cf13

Please sign in to comment.