Skip to content

Commit

Permalink
fix: pages.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
AykutSarac committed Feb 3, 2024
1 parent 7f2cf0e commit 2402e81
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 40 deletions.
6 changes: 2 additions & 4 deletions src/app/docs/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const StyledHighlight = styled.span<{ $link?: boolean; $alert?: boolean }>`
margin: ${({ $alert }) => ($alert ? "8px 0" : "1px")};
`;

const Docs = () => {
export default function Page() {
return (
<Layout>
<Head>
Expand Down Expand Up @@ -166,6 +166,4 @@ const Docs = () => {
</Stack>
</Layout>
);
};

export default Docs;
}
6 changes: 2 additions & 4 deletions src/app/editor/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const StyledEditorWrapper = styled.div`
overflow: hidden;
`;

const EditorPage: React.FC = () => {
export default function Page() {
const query = useSearchParams();
const loading = useJson(state => state.loading);
const hasQuery = React.useMemo(() => query !== null && Object.keys(query).length > 0, [query]);
Expand Down Expand Up @@ -68,6 +68,4 @@ const EditorPage: React.FC = () => {
</StyledEditorWrapper>
</EditorWrapper>
);
};

export default EditorPage;
}
6 changes: 2 additions & 4 deletions src/app/forgot-password/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ function ResetPassword() {
);
}

const ForgotPassword = () => {
export default function Page() {
const query = useSearchParams();
const typeParam = query?.get("type");
const errorParam = query?.get("error");
Expand Down Expand Up @@ -145,6 +145,4 @@ const ForgotPassword = () => {
)}
</Layout>
);
};

export default ForgotPassword;
}
6 changes: 2 additions & 4 deletions src/app/legal/privacy/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Head from "next/head";
import { Anchor, Container, Paper, Stack, Text, Title } from "@mantine/core";
import Layout from "src/layout/Layout";

const Privacy = () => {
export default function Page() {
return (
<Layout>
<Head>
Expand Down Expand Up @@ -60,6 +60,4 @@ const Privacy = () => {
</Container>
</Layout>
);
};

export default Privacy;
}
6 changes: 2 additions & 4 deletions src/app/legal/subscription-refund/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Head from "next/head";
import { Anchor, Container, List, Paper, Stack, Text, Title, ListItem } from "@mantine/core";
import Layout from "src/layout/Layout";

const SubscriptionRefund = () => {
export default function Page() {
return (
<Layout>
<Head>
Expand Down Expand Up @@ -70,6 +70,4 @@ const SubscriptionRefund = () => {
</Container>
</Layout>
);
};

export default SubscriptionRefund;
}
6 changes: 2 additions & 4 deletions src/app/legal/terms/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Head from "next/head";
import { Anchor, Container, Paper, Stack, Text, Title } from "@mantine/core";
import Layout from "src/layout/Layout";

const Terms = () => {
export default function Page() {
return (
<Layout>
<Head>
Expand Down Expand Up @@ -118,6 +118,4 @@ const Terms = () => {
</Container>
</Layout>
);
};

export default Terms;
}
6 changes: 2 additions & 4 deletions src/app/pricing/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const purchaseLinks = {
"https://herowand.lemonsqueezy.com/checkout/buy/577928ea-fb09-4076-9307-3e5931b35ad0?media=0&enabled=67805%2C82417",
};

const Pricing = () => {
export default function Page() {
const email = useUser(state => state.user?.email);
const [isMonthly, setIsMonthly] = React.useState(true);

Expand Down Expand Up @@ -296,6 +296,4 @@ const Pricing = () => {
</Text>
</Layout>
);
};

export default Pricing;
}
6 changes: 2 additions & 4 deletions src/app/sign-in/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ export function AuthenticationForm(props: PaperProps) {
);
}

const SignIn = () => {
export default function Page() {
const { push } = useRouter();
const queryParams = useSearchParams();
const typeParam = queryParams?.get("type");
Expand Down Expand Up @@ -147,6 +147,4 @@ const SignIn = () => {
</Center>
</Layout>
);
};

export default SignIn;
}
6 changes: 2 additions & 4 deletions src/app/sign-up/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import { AiOutlineGithub, AiOutlineGoogle } from "react-icons/ai";
import Layout from "src/layout/Layout";
import { supabase } from "src/lib/api/supabase";

const SignUp = () => {
export default function Page() {
const [loading, setLoading] = React.useState(false);
const [done, setDone] = React.useState(false);
const [userData, setUserData] = React.useState({
Expand Down Expand Up @@ -173,6 +173,4 @@ const SignUp = () => {
)}
</Layout>
);
};

export default SignUp;
}
6 changes: 2 additions & 4 deletions src/app/widget/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const Graph = dynamic(() => import("src/containers/Views/GraphView").then(c => c
ssr: false,
});

const WidgetPage = () => {
export default function Page() {
const { push } = useRouter();
const queryParams = useSearchParams();
const jsonParam = queryParams?.get("json");
Expand Down Expand Up @@ -71,6 +71,4 @@ const WidgetPage = () => {
</ThemeProvider>
</MantineProvider>
);
};

export default WidgetPage;
}

0 comments on commit 2402e81

Please sign in to comment.