IFFDAYIFFDAYDesign
Film and community

ShortReview

An audience review on an entry, with a spoiler shield, replies, withdrawal and reports.

import { ShortReview } from '@iffday/web/src/review-card';

Example

An audience review on an entry page. It adds four things to ReviewCard: a review marked as a spoiler stays covered and its text is requested from the API only when opened; Reply opens the replies and a reply box; the menu lets the author withdraw the review and anyone report it; long reviews show eight lines and then More.

Mina

Same screening! I was in row three.

The second review is marked as a spoiler. Replies and reports show a toast and are not saved.

Usage

reload is called after a reply or withdrawal succeeds, so the page reads its reviews again. stars is the author’s rating of the film, looked up by the page and passed in.

Props

A short audience review on a film entry, with spoiler reveal, replies, withdrawal by its author and reporting.

PropTypeDefault
review*Review
reload*() => void
starsnumber | null