1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Refactor LogLevelCell

This commit is contained in:
Bill Thornton 2024-08-29 07:59:01 -04:00
parent 9b436be72f
commit bfc37b4171

View file

@ -4,10 +4,11 @@ import React, { type FC } from 'react';
import { ActivityLogEntryCell } from '../types/ActivityLogEntryCell'; import { ActivityLogEntryCell } from '../types/ActivityLogEntryCell';
import LogLevelChip from './LogLevelChip'; import LogLevelChip from './LogLevelChip';
const LogLevelCell: FC<ActivityLogEntryCell> = ({ cell }) => ( const LogLevelCell: FC<ActivityLogEntryCell> = ({ cell }) => {
cell.getValue<LogLevel | undefined>() ? ( const level = cell.getValue<LogLevel | undefined>();
<LogLevelChip level={cell.getValue<LogLevel>()} /> return level ? (
) : undefined <LogLevelChip level={level} />
); ) : undefined;
};
export default LogLevelCell; export default LogLevelCell;