@@ -147,9 +147,6 @@ const appLabels: { [app: string]: string } = {
147
147
}
148
148
// autocorrect: true
149
149
150
- const getAppName = ( processName : string ) => {
151
- return appLabels [ processName ] || processName
152
- }
153
150
export const Activity = memo ( ( ) => {
154
151
const activityConfig = useAppConfigSelector (
155
152
( config ) => config . module . activity ,
@@ -219,7 +216,6 @@ export const Activity = memo(() => {
219
216
220
217
const renderDescription =
221
218
deferredProcess ?. description || appDescription [ deferredProcess ?. name || '' ]
222
- const renderProcessName = getAppName ( processName )
223
219
224
220
const memoProcessName = useMemo (
225
221
( ) => ( { processName : processName || '' , icon : processIcon } ) ,
@@ -245,9 +241,9 @@ export const Activity = memo(() => {
245
241
) }
246
242
{ isPageActive && (
247
243
< AnimatePresence >
248
- { renderProcessName && (
244
+ { processName && (
249
245
< m . div
250
- key = { renderProcessName }
246
+ key = { processName }
251
247
className = "pointer-events-auto absolute bottom-0 right-0 top-0 z-[10] flex items-center overflow-hidden lg:right-[-25px]"
252
248
initial = { {
253
249
opacity : 0.0001 ,
@@ -275,7 +271,7 @@ export const Activity = memo(() => {
275
271
trackerMessage = "Activity"
276
272
>
277
273
< span className = "whitespace-pre-line" >
278
- { ownerName } 正在使用 { renderProcessName }
274
+ { ownerName } 正在使用 { processName }
279
275
{ renderDescription ? ` ${ renderDescription } ` : '' }
280
276
</ span >
281
277
</ ImpressionView >
0 commit comments