Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

Fix typos and invalid tailwind class

Neoh Wei Jun732308c66745
diff --git a/apps/web/app/[domain]/placeholder.tsx b/apps/web/app/[domain]/placeholder.tsx
index 33eba065aa..ea1227083b 100644
--- a/apps/web/app/[domain]/placeholder.tsx
+++ b/apps/web/app/[domain]/placeholder.tsx
@@ -15,7 +15,7 @@ export default function PlaceholderContent() {
const onLoad = () => {
setLoading(false);
};
- // workarouond to avoid the blinking effect when Spline loads
+ // workaround to avoid the blinking effect when Spline loads
const [opacity] = useDebounce(loading ? 0 : 1, 200);
const [showText] = useDebounce(loading ? false : true, 800);
diff --git a/apps/web/app/api/stripe/webhook/route.ts b/apps/web/app/api/stripe/webhook/route.ts
index a238de76ec..35861e7313 100644
--- a/apps/web/app/api/stripe/webhook/route.ts
+++ b/apps/web/app/api/stripe/webhook/route.ts
@@ -274,7 +274,7 @@ export const POST = async (req: Request) => {
}
} catch (error) {
await log({
- message: `Stripe webook failed. Error: ${error.message}`,
+ message: `Stripe webhook failed. Error: ${error.message}`,
type: "errors",
});
return new Response(
diff --git a/apps/web/ui/account/update-default-workspace.tsx b/apps/web/ui/account/update-default-workspace.tsx
index 3cae0a5c2d..60c235dc8b 100644
--- a/apps/web/ui/account/update-default-workspace.tsx
+++ b/apps/web/ui/account/update-default-workspace.tsx
@@ -92,7 +92,7 @@ export default function UpdateDefaultWorkspace() {
<a
href="https://dub.co/help/article/how-to-change-default-workspace"
target="_blank"
- className="nderline-offset-4 text-sm text-gray-500 underline hover:text-gray-700"
+ className="text-sm text-gray-500 underline underline-offset-4 hover:text-gray-700"
>
Learn more about how default workspaces work
</a>
diff --git a/apps/web/ui/links/link-card.tsx b/apps/web/ui/links/link-card.tsx
index 53c6c65a73..78c9d58e98 100644
--- a/apps/web/ui/links/link-card.tsx
+++ b/apps/web/ui/links/link-card.tsx
@@ -185,7 +185,7 @@ export default function LinkCard({
}
}, [selected]);
- const handlClickOnLinkCard = (e: any) => {
+ const handleClickOnLinkCard = (e: any) => {
// Check if the clicked element is a linkRef or one of its descendants
const isLinkCardClick =
linkRef.current && linkRef.current.contains(e.target);
@@ -204,12 +204,12 @@ export default function LinkCard({
useEffect(() => {
if (isVisible) {
- document.addEventListener("click", handlClickOnLinkCard);
+ document.addEventListener("click", handleClickOnLinkCard);
}
return () => {
- document.removeEventListener("click", handlClickOnLinkCard);
+ document.removeEventListener("click", handleClickOnLinkCard);
};
- }, [handlClickOnLinkCard]);
+ }, [handleClickOnLinkCard]);
const [copiedLinkId, setCopiedLinkId] = useState(false);
diff --git a/apps/web/ui/modals/transfer-domain-modal.tsx b/apps/web/ui/modals/transfer-domain-modal.tsx
index a300463a6f..3155be5686 100644
--- a/apps/web/ui/modals/transfer-domain-modal.tsx
+++ b/apps/web/ui/modals/transfer-domain-modal.tsx
@@ -28,7 +28,7 @@ function TransferDomainModal({
const currentWorkspace = useWorkspace();
const { workspaces } = useWorkspaces();
const [transferring, setTransferring] = useState(false);
- const [selectedWorkspace, setselectedWorkspace] =
+ const [selectedWorkspace, setSelectedWorkspace] =
useState<InputSelectItemProps | null>(null);
const transferDomain = async (domain: string, newWorkspaceId: string) => {
@@ -97,7 +97,7 @@ function TransferDomainModal({
label: workspace.id === currentWorkspace.id ? "Current" : "",
}))}
selectedItem={selectedWorkspace}
- setSelectedItem={setselectedWorkspace}
+ setSelectedItem={setSelectedWorkspace}
inputAttrs={{
placeholder: "Select a workspace",
}}
diff --git a/apps/web/ui/welcome/intro.tsx b/apps/web/ui/welcome/intro.tsx
index b73c9e8271..dc7c298513 100644
--- a/apps/web/ui/welcome/intro.tsx
+++ b/apps/web/ui/welcome/intro.tsx
@@ -11,7 +11,7 @@ export default function Intro() {
const onLoad = () => {
setLoading(false);
};
- // workarouond to avoid the blinking effect when Spline loads
+ // workaround to avoid the blinking effect when Spline loads
const [opacity] = useDebounce(loading ? 0 : 1, 200);
const [showText] = useDebounce(loading ? false : true, 800);
diff --git a/apps/web/ui/workspaces/upload-logo.tsx b/apps/web/ui/workspaces/upload-logo.tsx
index a728732009..25cf48151b 100644
--- a/apps/web/ui/workspaces/upload-logo.tsx
+++ b/apps/web/ui/workspaces/upload-logo.tsx
@@ -34,7 +34,7 @@ export default function UploadLogo() {
mutate("/api/workspaces"),
mutate(`/api/workspaces/${id}`),
]);
- toast.success("Succesfully uploaded workspace logo!");
+ toast.success("Successfully uploaded workspace logo!");
} else {
const { error } = await res.json();
toast.error(error.message);