听力补偿新增左右耳曲线
This commit is contained in:
@@ -12,6 +12,7 @@ import { useLocation } from "wouter";
|
||||
import { useState, useEffect, useRef, useMemo } from "react";
|
||||
import BottomNav from "@/components/BottomNav";
|
||||
import SubwooferLpfChart from "@/components/SubwooferLpfChart";
|
||||
import HearingCompensationChart from "@/components/HearingCompensationChart";
|
||||
import { FeatureGate } from "@/components/FeatureGate";
|
||||
import { navigateToSelect } from "./SelectPage";
|
||||
import { parseFirmwareVersion, parseHearingData } from "@/lib/luxsinApi";
|
||||
@@ -914,6 +915,15 @@ export default function EffectsPage() {
|
||||
<span className="text-[14px] text-white/45">{hearingDisplay}</span>
|
||||
<ChevronRight size={16} className="ios-chevron" />
|
||||
</button>
|
||||
{hearingOn && hearingProfiles[hearingIdx] && (
|
||||
<HearingCompensationChart
|
||||
className="mt-3 w-full h-[min(42vw,200px)] min-h-[140px] md:h-[260px] lg:h-[300px] rounded-lg bg-black/30"
|
||||
left={hearingProfiles[hearingIdx].l}
|
||||
right={hearingProfiles[hearingIdx].r}
|
||||
leftLabel={effectText.hearing?.left ?? "Left"}
|
||||
rightLabel={effectText.hearing?.right ?? "Right"}
|
||||
/>
|
||||
)}
|
||||
</div>
|
||||
)}
|
||||
</FeatureGate>
|
||||
|
||||
Reference in New Issue
Block a user