mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-07-09 03:04:20 -04:00
Front: Prettier
This commit is contained in:
parent
fa969fa702
commit
5f7ef2a18e
@ -37,7 +37,7 @@ const MediaInfoTable = ({
|
|||||||
if (trackTable.length == 0) {
|
if (trackTable.length == 0) {
|
||||||
return undefined;
|
return undefined;
|
||||||
}
|
}
|
||||||
const singleTrack = trackTable.length == 1
|
const singleTrack = trackTable.length == 1;
|
||||||
return trackTable.reduce(
|
return trackTable.reduce(
|
||||||
(collected, audioTrack, index) => ({
|
(collected, audioTrack, index) => ({
|
||||||
...collected,
|
...collected,
|
||||||
@ -45,7 +45,7 @@ const MediaInfoTable = ({
|
|||||||
[singleTrack ? t(s) : `${t(s)} ${index + 1}`]: [
|
[singleTrack ? t(s) : `${t(s)} ${index + 1}`]: [
|
||||||
audioTrack.displayName,
|
audioTrack.displayName,
|
||||||
// Only show it if there is more than one track
|
// Only show it if there is more than one track
|
||||||
(audioTrack.isDefault && !singleTrack) ? t("mediainfo.default") : undefined,
|
audioTrack.isDefault && !singleTrack ? t("mediainfo.default") : undefined,
|
||||||
audioTrack.isForced ? t("mediainfo.forced") : undefined,
|
audioTrack.isForced ? t("mediainfo.forced") : undefined,
|
||||||
audioTrack.codec,
|
audioTrack.codec,
|
||||||
]
|
]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user