We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1efa9c3 commit 376f171Copy full SHA for 376f171
src/index.ts
@@ -1,2 +1,3 @@
1
export * from './api';
2
export * from './ui';
3
+export { setProxyUrl } from './utils/proxify';
src/ui/Button.tsx
@@ -4,7 +4,7 @@ import type { PropsWithChildren } from 'react';
4
export const Button = ({
5
onClick,
6
disabled,
7
- variant,
+ variant, //eslint-disable-line @typescript-eslint/no-unused-vars
8
children,
9
}: {
10
onClick: () => void;
src/utils/proxify.ts
@@ -1,4 +1,8 @@
-const proxyUrl = 'https://proxy.dial.to';
+let proxyUrl = 'https://proxy.dial.to';
+
+export function setProxyUrl(url: string) {
+ proxyUrl = url;
+}
export function proxify(url: string) {
const proxifiedUrl = new URL(proxyUrl);
0 commit comments