Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ made .env.sample clean/tidy && made overflowscrolling on y-axis in profile page #12

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
19 changes: 5 additions & 14 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
# Since the ".env" file is gitignored, you can use the ".env.example" file to
# build a new ".env" file when you clone the repo. Keep this file up-to-date
# when you add new variables to `.env`.

# This file will be committed to version control, so make sure not to have any
# secrets in it. If you are cloning this repo, create a copy of this file named
# ".env" and populate it with your secrets.

# When adding additional environment variables, the schema in "/src/env.mjs"
# should be updated accordingly.

# Prisma
# https://www.prisma.io/docs/reference/database-reference/connection-urls#env
DATABASE_URL="file:./db.sqlite"
DATABASE_URL=
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=
CLERK_SECRET_KEY=
UPSTASH_REDIS_REST_URL=
UPSTASH_REDIS_REST_TOKEN=
7 changes: 4 additions & 3 deletions src/pages/[slug].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const ProfileFeed = (props: { userId: string }) => {
if (!data || data.length === 0) return <div>User has not posted</div>;

return (
<div className="flex flex-col">
<div className="flex flex-col overflow-y-scroll">
{data.map((fullPost) => (
<PostView {...fullPost} key={fullPost.post.id} />
))}
Expand Down Expand Up @@ -46,8 +46,9 @@ const ProfilePage: NextPage<{ username: string }> = ({ username }) => {
/>
</div>
<div className="h-[64px]"></div>
<div className="p-4 text-2xl font-bold">{`@${data.username ?? data.externalUsername
}`}</div>
<div className="p-4 text-2xl font-bold">{`@${
data.username ?? data.externalUsername
}`}</div>
<div className="w-full border-b border-slate-400" />
<ProfileFeed userId={data.id} />
</PageLayout>
Expand Down