@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,4 +1,4 @@
|
|
1
|
-
import {
|
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
|
-
<
|
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
|
-
</
|
59
|
+
</As>
|
60
60
|
)
|
61
61
|
}
|
62
62
|
|