Skip to content

Commit c145ec3

Browse files
committed
fix(me): move feedback entry to profile button
1 parent 943f0dd commit c145ec3

5 files changed

Lines changed: 19 additions & 31 deletions

File tree

apps/web/content/docs/sop/index.zh.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ description: 周周黑客松的社区活动手册与 SOP,覆盖小型黑客松
6464
| **物料清单** | [📦 活动物料清单](/docs/sop/manual/materials) |
6565
| **设计素材** | [Logo/排版素材汇总](http://logo.hackathonweekly.com) |
6666
| **费用报销** | [社区报销申请表](https://hackathonweekly.feishu.cn/share/base/form/shrcnSg2UVWbBqh6qV4xwSHPi1c) |
67-
| **反馈建议** | [feedback.hackathonweekly.com](http://feedback.hackathonweekly.com) |
67+
| **反馈建议** | [社区官网需求 & Bug 反馈收集表](https://hackathonweekly.feishu.cn/share/base/form/shrcn2DFP83G2Wb7nzNPQhswH9d) |
6868

6969

7070
## 志愿者须知

apps/web/src/app/(main)/(account)/me/page.tsx

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
"use client";
22

33
import { clearCache } from "@/actions/clear-cache";
4-
import {
5-
COMMUNITY_FEEDBACK_FORM_LABEL,
6-
COMMUNITY_FEEDBACK_FORM_URL,
7-
} from "@/modules/shared/lib/community-feedback";
4+
import { COMMUNITY_FEEDBACK_FORM_URL } from "@/modules/shared/lib/community-feedback";
85
import { config } from "@community/config";
96
import {
107
useEventBookmarksQuery,
@@ -415,6 +412,20 @@ export default function MePage() {
415412
isLoading={false}
416413
showCount={false}
417414
/>
415+
<Button
416+
asChild
417+
variant="outline"
418+
size="sm"
419+
className="h-10 w-full justify-center"
420+
>
421+
<a
422+
href={COMMUNITY_FEEDBACK_FORM_URL}
423+
target="_blank"
424+
rel="noreferrer"
425+
>
426+
{t("mePage.feedbackSuggestion")}
427+
</a>
428+
</Button>
418429
<SettingsRow label={t("mePage.darkMode")}>
419430
<ColorModeToggle />
420431
</SettingsRow>
@@ -423,16 +434,6 @@ export default function MePage() {
423434
<LocaleSwitch onLocaleChange={updateLocale} />
424435
) : null}
425436
</SettingsRow>
426-
<div className="px-1 pt-1 text-xs text-muted-foreground">
427-
<a
428-
href={COMMUNITY_FEEDBACK_FORM_URL}
429-
target="_blank"
430-
rel="noreferrer"
431-
className="transition-colors hover:text-foreground"
432-
>
433-
{COMMUNITY_FEEDBACK_FORM_LABEL}
434-
</a>
435-
</div>
436437
</Section>
437438

438439
<Button

apps/web/src/app/(main)/(docs)/docs/[[...path]]/layout.tsx

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,14 @@
11
import { TabBar } from "@/modules/public/shared/components/TabBar";
2-
import {
3-
COMMUNITY_FEEDBACK_FORM_LABEL,
4-
COMMUNITY_FEEDBACK_FORM_URL,
5-
} from "@/modules/shared/lib/community-feedback";
62
import { config } from "@community/config";
73
import { DocsLayout } from "fumadocs-ui/layouts/docs";
8-
import { getLocale, getTranslations } from "next-intl/server";
4+
import { getLocale } from "next-intl/server";
95
import Image from "next/image";
106
import type { PropsWithChildren } from "react";
117
import { docsSource } from "../../../../docs-source";
128

139
export default async function DocumentationLayout({
1410
children,
1511
}: PropsWithChildren) {
16-
const t = await getTranslations();
1712
const locale = await getLocale();
1813
const tree =
1914
docsSource.pageTree[locale] ??
@@ -62,16 +57,6 @@ export default async function DocumentationLayout({
6257
}}
6358
>
6459
{children}
65-
<div className="mt-8 border-t border-border/50 pt-5 text-xs text-muted-foreground">
66-
<a
67-
href={COMMUNITY_FEEDBACK_FORM_URL}
68-
target="_blank"
69-
rel="noreferrer"
70-
className="transition-colors hover:text-foreground"
71-
>
72-
{COMMUNITY_FEEDBACK_FORM_LABEL}
73-
</a>
74-
</div>
7560
</DocsLayout>
7661
</div>
7762
<TabBar />

packages/lib-shared/src/i18n/translations/en.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2501,6 +2501,7 @@
25012501
"mePage": {
25022502
"darkMode": "Dark mode",
25032503
"discoverOrganizations": "Discover Organizations",
2504+
"feedbackSuggestion": "Feedback",
25042505
"language": "Language",
25052506
"logout": "Log out",
25062507
"messages": "Messages",

packages/lib-shared/src/i18n/translations/zh.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2560,6 +2560,7 @@
25602560
"mePage": {
25612561
"darkMode": "深色模式",
25622562
"discoverOrganizations": "发现更多组织",
2563+
"feedbackSuggestion": "反馈建议",
25632564
"language": "语言",
25642565
"logout": "退出登录",
25652566
"messages": "我的消息",

0 commit comments

Comments
 (0)