feat: add feedback shortcut to profile tab
This commit is contained in:
@@ -134,6 +134,7 @@ export interface RpgEntryHomeViewProps {
|
|||||||
profilePlayStatsError?: string | null;
|
profilePlayStatsError?: string | null;
|
||||||
onCloseProfilePlayStats?: () => void;
|
onCloseProfilePlayStats?: () => void;
|
||||||
onOpenPlayedWork?: (work: ProfilePlayedWorkSummary) => void;
|
onOpenPlayedWork?: (work: ProfilePlayedWorkSummary) => void;
|
||||||
|
onOpenFeedback?: () => void;
|
||||||
onRechargeSuccess?: () => void | Promise<void>;
|
onRechargeSuccess?: () => void | Promise<void>;
|
||||||
createTabContent?: ReactNode;
|
createTabContent?: ReactNode;
|
||||||
}
|
}
|
||||||
@@ -2679,6 +2680,7 @@ export function RpgEntryHomeView({
|
|||||||
profilePlayStatsError = null,
|
profilePlayStatsError = null,
|
||||||
onCloseProfilePlayStats,
|
onCloseProfilePlayStats,
|
||||||
onOpenPlayedWork,
|
onOpenPlayedWork,
|
||||||
|
onOpenFeedback,
|
||||||
onRechargeSuccess,
|
onRechargeSuccess,
|
||||||
createTabContent,
|
createTabContent,
|
||||||
}: RpgEntryHomeViewProps) {
|
}: RpgEntryHomeViewProps) {
|
||||||
@@ -3996,6 +3998,12 @@ export function RpgEntryHomeView({
|
|||||||
icon={MessageCircle}
|
icon={MessageCircle}
|
||||||
onClick={() => openProfilePopupPanel('community')}
|
onClick={() => openProfilePopupPanel('community')}
|
||||||
/>
|
/>
|
||||||
|
<ProfileShortcutButton
|
||||||
|
label="反馈"
|
||||||
|
subLabel="问题与建议"
|
||||||
|
icon={MessageCircle}
|
||||||
|
onClick={onOpenFeedback}
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user