mirror of
https://github.com/antebudimir/feishin.git
synced 2026-01-01 02:13:33 +00:00
disable single attribute per line
This commit is contained in:
parent
92ed8e20c9
commit
8b141d652c
154 changed files with 390 additions and 1800 deletions
|
|
@ -53,12 +53,7 @@ export const formatDurationString = (duration: number) => {
|
|||
};
|
||||
|
||||
export const formatRating = (item: Album | AlbumArtist | Song) =>
|
||||
item.userRating !== null ? (
|
||||
<Rating
|
||||
readOnly
|
||||
value={item.userRating}
|
||||
/>
|
||||
) : null;
|
||||
item.userRating !== null ? <Rating readOnly value={item.userRating} /> : null;
|
||||
|
||||
const SIZES = ['B', 'KiB', 'MiB', 'GiB', 'TiB'];
|
||||
|
||||
|
|
|
|||
|
|
@ -20,12 +20,7 @@ export const replaceURLWithHTMLLinks = (text: string) => {
|
|||
const link = match[0];
|
||||
const prefix = link.startsWith('http') ? '' : 'https://';
|
||||
elements.push(
|
||||
<a
|
||||
href={prefix + link}
|
||||
key={lastIndex}
|
||||
rel="noopener noreferrer"
|
||||
target="_blank"
|
||||
>
|
||||
<a href={prefix + link} key={lastIndex} rel="noopener noreferrer" target="_blank">
|
||||
{link}
|
||||
</a>,
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue