mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 12:54:38 +03:00
* Set/unset existing ids when moving to/from set * Refactor rating banner * Fix overlapping in multi set * Prevent UI crash on bad hierarchical input value
16 lines
336 B
TypeScript
16 lines
336 B
TypeScript
import React from "react";
|
|
import { FormattedMessage } from "react-intl";
|
|
|
|
interface IProps {
|
|
rating?: number | null;
|
|
}
|
|
|
|
export const RatingBanner: React.FC<IProps> = ({ rating }) =>
|
|
rating ? (
|
|
<div className={`rating-banner rating-${rating}`}>
|
|
<FormattedMessage id="rating" />: {rating}
|
|
</div>
|
|
) : (
|
|
<></>
|
|
);
|