Skip to content

Commit

Permalink
fix: Remove redirection on bulk
Browse files Browse the repository at this point in the history
  • Loading branch information
amaury1093 committed Dec 30, 2023
1 parent 6faa5c5 commit 153ebef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/app/[lang]/dashboard/Tabs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export function Tabs({ bulkDisabled, tab, ...props }: TabsProps) {
bulkDisabled ? (
<>
<Lock />
{d.bulk}
{d.bulk_locked}
</>
) : (
<>
Expand Down
10 changes: 1 addition & 9 deletions src/app/[lang]/dashboard/bulk/Csv.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use client";

import React, { useCallback, useEffect, useState } from "react";
import React, { useCallback, useState } from "react";
import { Dictionary } from "@/dictionaries";
import { Button, Card, Spacer, Table, Text } from "@geist-ui/react";
import { sentryException } from "@/util/sentry";
Expand All @@ -19,14 +19,6 @@ export function Csv({ ...props }: { d: Dictionary }): React.ReactElement {
const [loading, setLoading] = useState(false);
const [upload, setUpload] = useState(<UploadButton d={d} />);

useEffect(() => {
// This is a temporary redirect to the dashboard while I still work
// on the bulk page.
if (window.location.hostname == "app.reacher.email") {
window.location.href = "https://app.reacher.email/dashboard/verify";
}
}, []);

const onDrop = useCallback(
(acceptedFiles: File[]) => {
setEmails([]);
Expand Down

1 comment on commit 153ebef

@vercel
Copy link

@vercel vercel bot commented on 153ebef Dec 30, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.