Skip to content

Commit 7a38280

Browse files
committed
refactor(react): Url -> PolicyURL
1 parent 74c37e4 commit 7a38280

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/react/src/components/policies.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,16 @@ import { getTranslation } from "@firebase-ui/core";
1818
import { createContext, useContext } from "react";
1919
import { useUI } from "~/hooks";
2020

21-
type Url =
21+
export type PolicyURL =
2222
| string
2323
| URL
2424
| (() => string | URL | void)
2525
| Promise<string | URL | void>
2626
| (() => Promise<string | URL | void>);
2727

2828
export interface PolicyProps {
29-
termsOfServiceUrl: Url;
30-
privacyPolicyUrl: Url;
29+
termsOfServiceUrl: PolicyURL;
30+
privacyPolicyUrl: PolicyURL;
3131
}
3232

3333
const PolicyContext = createContext<PolicyProps | undefined>(undefined);
@@ -46,7 +46,7 @@ export function Policies() {
4646

4747
const { termsOfServiceUrl, privacyPolicyUrl } = policies;
4848

49-
async function handleUrl(urlOrFunction: Url) {
49+
async function handleUrl(urlOrFunction: PolicyURL) {
5050
let url: string | URL | void;
5151

5252
if (typeof urlOrFunction === "function") {

0 commit comments

Comments
 (0)