diff --git a/src/renderer/components/maps-mangement-components/map-item.component.tsx b/src/renderer/components/maps-mangement-components/map-item.component.tsx index 67977f7a..8f0a1fd1 100644 --- a/src/renderer/components/maps-mangement-components/map-item.component.tsx +++ b/src/renderer/components/maps-mangement-components/map-item.component.tsx @@ -4,11 +4,13 @@ import { useThemeColor } from "renderer/hooks/use-theme-color.hook"; import { BsmLink } from "../shared/bsm-link.component"; import { BsmIcon } from "../svgs/bsm-icon.component"; import { BsmButton } from "../shared/bsm-button.component"; +import { motion } from "framer-motion"; export type MapItemProps = { hash: string, title: string, autor: string, + songAutor: string, coverUrl: string, songUrl: string, autorLink: string, @@ -22,7 +24,7 @@ export type MapItemProps = { onDownload?: (id: string) => void, } -export function MapItem({hash, title, autor, coverUrl, songUrl, autorLink, mapId, diffs, qualified, ranked, onDelete, onDownload}: MapItemProps) { +export function MapItem({hash, title, autor, songAutor, coverUrl, songUrl, autorLink, mapId, diffs, qualified, ranked, onDelete, onDownload}: MapItemProps) { const color = useThemeColor("first-color"); @@ -70,22 +72,21 @@ export function MapItem({hash, title, autor, coverUrl, songUrl, autorLink, mapId } return ( -
  • - -
    - {title} - {renderAutor()} -
      - {Array.from(diffs.entries()).map(([charac, diffs]) => diffs.map(diff => renderDiff(charac, diff)))} -
    +
  • +
    + +
    -
    - - - - - - +
    + +
    +

    {title}

    +

    par {songAutor}

    +

    mappée par {autor}

    +
    +
    +
    + sp
  • )