Skip to content

Commit

Permalink
Fix ssr build
Browse files Browse the repository at this point in the history
  • Loading branch information
programmiri committed Dec 30, 2021
1 parent db1bd0c commit eae26c2
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 9 deletions.
File renamed without changes.
3 changes: 0 additions & 3 deletions src/pages/create-profile.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
import React from "react"
import { Layout } from "../components/layout/Layout"
import { CreateProfile } from "../components/profile/CreateProfile"
import { isSSR } from "../utils/isSSR"

export default function CreateProfilePage() {
if (isSSR) return null

return (
<Layout title="Create Profile">
<CreateProfile />
Expand Down
2 changes: 0 additions & 2 deletions src/pages/profile.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
import React from "react"
import { Layout } from "../components/layout/Layout"
import { UserProfile } from "../components/profile/UserProfile"
import { isSSR } from "../utils/isSSR"

export default function ProfilePage() {
if (isSSR) return null
return (
<Layout title="Your Profile">
<UserProfile />
Expand Down
4 changes: 0 additions & 4 deletions src/utils/isSSR.ts

This file was deleted.

0 comments on commit eae26c2

Please sign in to comment.