@atproto/oauth-provider 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atproto/oauth-provider",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "license": "MIT",
5
5
  "description": "Generic OAuth2 and OpenID Connect provider for Node.js. Currently only supports features needed for Atproto.",
6
6
  "keywords": [
@@ -1,4 +1,4 @@
1
- import { Component, HTMLAttributes, useMemo } from 'react'
1
+ import { HTMLAttributes, useMemo } from 'react'
2
2
 
3
3
  export type UrlPartRenderingOptions = {
4
4
  faded?: boolean
@@ -28,7 +28,7 @@ export function UrlViewer({
28
28
  const urlObj = useMemo(() => new URL(url), [url])
29
29
 
30
30
  return (
31
- <Component as={As} {...attrs}>
31
+ <As {...attrs}>
32
32
  {proto && (
33
33
  <UrlPartViewer
34
34
  value={`${urlObj.protocol}//`}
@@ -56,7 +56,7 @@ export function UrlViewer({
56
56
  {hash && (
57
57
  <UrlPartViewer value={urlObj.hash} {...(hash === true ? null : hash)} />
58
58
  )}
59
- </Component>
59
+ </As>
60
60
  )
61
61
  }
62
62