File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
packages/react/src/components Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -18,16 +18,16 @@ import { getTranslation } from "@firebase-ui/core";
18
18
import { createContext , useContext } from "react" ;
19
19
import { useUI } from "~/hooks" ;
20
20
21
- type Url =
21
+ export type PolicyURL =
22
22
| string
23
23
| URL
24
24
| ( ( ) => string | URL | void )
25
25
| Promise < string | URL | void >
26
26
| ( ( ) => Promise < string | URL | void > ) ;
27
27
28
28
export interface PolicyProps {
29
- termsOfServiceUrl : Url ;
30
- privacyPolicyUrl : Url ;
29
+ termsOfServiceUrl : PolicyURL ;
30
+ privacyPolicyUrl : PolicyURL ;
31
31
}
32
32
33
33
const PolicyContext = createContext < PolicyProps | undefined > ( undefined ) ;
@@ -46,7 +46,7 @@ export function Policies() {
46
46
47
47
const { termsOfServiceUrl, privacyPolicyUrl } = policies ;
48
48
49
- async function handleUrl ( urlOrFunction : Url ) {
49
+ async function handleUrl ( urlOrFunction : PolicyURL ) {
50
50
let url : string | URL | void ;
51
51
52
52
if ( typeof urlOrFunction === "function" ) {
You can’t perform that action at this time.
0 commit comments