Skip to content

Commit

Permalink
minor refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
brillout committed Aug 17, 2024
1 parent 405af64 commit b61c80e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
7 changes: 0 additions & 7 deletions packages/vike-react/src/components/Config/Config-client.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,8 @@
export { Config }

// Same as ./Config-server.ts but importing useConfig-client.js

import { useConfig } from '../../hooks/useConfig/useConfig-client.js'
import type { ConfigFromHook } from '../../types/Config.js'

/**
* Set configurations inside React components.
*
* https://vike.dev/useConfig
*/
function Config(props: ConfigFromHook): null {
const config = useConfig()
config(props)
Expand Down
2 changes: 0 additions & 2 deletions packages/vike-react/src/components/Config/Config-server.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
export { Config }

// Same as ./Config-client.ts but importing useConfig-server.js

import { useConfig } from '../../hooks/useConfig/useConfig-server.js'
import type { ConfigFromHook } from '../../types/Config.js'

Expand Down

0 comments on commit b61c80e

Please sign in to comment.