Skip to content

Commit

Permalink
Merge pull request #378 from refly-ai/fix/login-privcay-terms-link
Browse files Browse the repository at this point in the history
fix(web): remove privacy and terms pages and links
  • Loading branch information
mrcfps authored Jan 16, 2025
2 parents b6593d7 + 2f83b19 commit 002d0ad
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 362 deletions.
4 changes: 2 additions & 2 deletions apps/web/src/components/landing-page-partials/HeroHome.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ function HeroHome() {
</div>
</div>

<div className="flex justify-center">
{/* <div className="flex justify-center">
<a
href="https://www.producthunt.com/posts/refly-3?embed=true&utm_source=badge-featured&utm_medium=badge&utm_souce=badge-refly&#0045;3"
target="_blank"
Expand All @@ -232,7 +232,7 @@ function HeroHome() {
loading="lazy"
/>
</a>
</div>
</div> */}

{/* Hero image */}
<div className="relative mt-6 flex justify-center overflow-hidden sm:mt-10">
Expand Down
11 changes: 4 additions & 7 deletions apps/web/src/components/layout/sider.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { useState, useMemo } from "react"
import { Menu } from "@arco-design/web-react"
import { Alert, Avatar, Button, Layout, Skeleton, Divider, Tag } from "antd"
import { Alert, Avatar, Button, Layout, Skeleton, Divider } from "antd"
import {
useLocation,
useNavigate,
Expand Down Expand Up @@ -48,11 +48,8 @@ const SiderLogo = (props: {
onClick={() => navigate("/")}>
<img src={Logo} alt="Refly" className="h-8 w-8" />
<span className="text-xl font-bold text-black" translate="no">
Refly{" "}
Refly
</span>
<Tag color="green" className="text-[10px] leading-4">
Beta
</Tag>
</div>
{source === "sider" && (
<div>
Expand Down Expand Up @@ -386,7 +383,7 @@ export const SiderLayout = (props: { source: "sider" | "popover" }) => {

<div className="mt-auto">
<div className="mb-2 flex flex-col gap-2">
<a
{/* <a
href="https://www.producthunt.com/posts/refly-3?embed=true&utm_source=badge-featured&utm_medium=badge&utm_souce=badge-refly&#0045;3"
target="_blank"
rel="noopener noreferrer"
Expand All @@ -397,7 +394,7 @@ export const SiderLayout = (props: { source: "sider" | "popover" }) => {
className="w-[200px]"
loading="lazy"
/>
</a>
</a> */}

<Alert
message={
Expand Down
6 changes: 4 additions & 2 deletions apps/web/src/components/login-modal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,8 @@ export const LoginModal = (props: { visible?: boolean; from?: string }) => {
<div className="mt-2 text-center text-xs text-gray-500">
{t("landingPage.loginModal.utilText")}
<Link
to={`/terms`}
to="https://docs.refly.ai/about/terms-of-service"
target="_blank"
className="mx-1 text-xs text-green-600 underline"
onClick={() => {
authStore.setLoginModalOpen(false)
Expand All @@ -277,7 +278,8 @@ export const LoginModal = (props: { visible?: boolean; from?: string }) => {
</Link>
{t("landingPage.loginModal.and")}
<Link
to={`/privacy`}
to="https://docs.refly.ai/about/privacy-policy"
target="_blank"
className="mx-1 text-xs text-green-600 underline"
onClick={() => {
authStore.setLoginModalOpen(false)
Expand Down
10 changes: 0 additions & 10 deletions apps/web/src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ import {
RouterProvider,
Outlet,
} from "react-router-dom"
import Privacy from "@/pages/privacy"
import Terms from "@/pages/terms"
import { QueryClientProvider } from "@tanstack/react-query"
import { queryClient } from "@refly-packages/ai-workspace-common/utils/request"

Expand Down Expand Up @@ -98,14 +96,6 @@ export const App = () => {

// Update router creation to use createBrowserRouter with proper route definitions
const router = createBrowserRouter([
{
path: "/privacy",
element: <Privacy />,
},
{
path: "/terms",
element: <Terms />,
},
{
path: "*",
element: <App />,
Expand Down
197 changes: 0 additions & 197 deletions apps/web/src/pages/privacy/index.tsx

This file was deleted.

Loading

0 comments on commit 002d0ad

Please sign in to comment.