mirror of
https://github.com/Radiquum/AniX.git
synced 2025-04-28 00:49:40 +05:00
refactor: Release page
factor it in separate components and update grid styling
This commit is contained in:
parent
c2c3a95e6c
commit
e548ce060d
9 changed files with 542 additions and 429 deletions
|
@ -119,7 +119,7 @@ export const ReleasePlayer = (props: { id: number }) => {
|
|||
>
|
||||
{voiceoverInfo.map((voiceover: any) => (
|
||||
<Dropdown.Item
|
||||
key={voiceover.id}
|
||||
key={`voiceover_${voiceover.id}`}
|
||||
onClick={() => setSelectedVoiceover(voiceover)}
|
||||
>
|
||||
{voiceover.name}
|
||||
|
@ -132,7 +132,7 @@ export const ReleasePlayer = (props: { id: number }) => {
|
|||
>
|
||||
{sourcesInfo.map((source: any) => (
|
||||
<Dropdown.Item
|
||||
key={source.id}
|
||||
key={`source_${source.id}`}
|
||||
onClick={() => setSelectedSource(source)}
|
||||
>
|
||||
{source.name}
|
||||
|
@ -156,7 +156,7 @@ export const ReleasePlayer = (props: { id: number }) => {
|
|||
? ButtonThemeActive
|
||||
: ButtonThemeInactive
|
||||
}`}
|
||||
key={episode.id}
|
||||
key={`episode_${episode.position}`}
|
||||
onClick={() => {
|
||||
setSelectedEpisode(episode);
|
||||
episode.is_watched = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue