Skip to content

Commit 2deecc7

Browse files
committed
refactor: 移除 BUILDING_PUBLIC 事件类型并清理相关代码
- 从 EventRegistrationForm 的事件类型中删除 BUILDING_PUBLIC 选项 - 移除 ParticipantsSection 中多余的“个人自我介绍:”文本前缀
1 parent 722f894 commit 2deecc7

3 files changed

Lines changed: 2 additions & 3 deletions

File tree

apps/web/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"shadcn-ui": "npx shadcn@latest",
2727
"postinstall": "prisma generate --no-hints --schema=../../packages/lib-server/src/database/prisma/schema.prisma",
2828
"db:generate": "prisma generate --no-hints --schema=../../packages/lib-server/src/database/prisma/schema.prisma",
29-
"db:push": "dotenv -c -- prisma db push --skip-generate --schema=../../packages/lib-server/src/database/prisma/schema.prisma",
29+
"db:push": "dotenv -c -- prisma db push --schema=../../packages/lib-server/src/database/prisma/schema.prisma",
3030
"db:migrate": "dotenv -c -- prisma migrate dev --schema=../../packages/lib-server/src/database/prisma/schema.prisma",
3131
"db:studio": "dotenv -c -- prisma studio --schema=../../packages/lib-server/src/database/prisma/schema.prisma",
3232
"db:seed": "dotenv -c -- tsx ../../packages/lib-server/src/database/seed.ts",

apps/web/src/modules/public/events/components/EventRegistrationForm.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ interface EventRegistrationFormProps {
5252
event: {
5353
id: string;
5454
title: string;
55-
type: "MEETUP" | "HACKATHON" | "BUILDING_PUBLIC";
55+
type: "MEETUP" | "HACKATHON";
5656
requireApproval: boolean;
5757
requireProjectSubmission?: boolean;
5858
askDigitalCardConsent?: boolean;

apps/web/src/modules/public/events/detail/components/sections/ParticipantsSection.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,6 @@ export function ParticipantsSection({
223223
)}
224224
{bioText && (
225225
<p className="text-xs text-slate-500 line-clamp-2">
226-
个人自我介绍:
227226
<span className="text-slate-600">
228227
{bioText}
229228
</span>

0 commit comments

Comments
 (0)