Sha256: 269b8a2e994fe51c3c4207263640e694211d0b79739668445979e8886c26d42d
Contents?: true
Size: 789 Bytes
Versions: 1
Compression:
Stored size: 789 Bytes
Contents
import * as Attachments from "../../types/Attachments"; type Props = { attributeName: (record: Attachments.Record) => string; deleted: Attachments.Record[]; }; export default function Deleted({ attributeName, deleted }: Props) { return ( <div className="deleted"> {deleted.map((r) => ( <span className="deleted-attachment" key={r.id}> <input name={`${attributeName(r)}[id]`} type="hidden" value={r.id} /> <input name={`${attributeName(r)}[attachment_id]`} type="hidden" value={(r.attachment && r.attachment.id) || ""} /> <input name={`${attributeName(r)}[_destroy]`} type="hidden" value="true" /> </span> ))} </div> ); }
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pages_core-3.15.5 | app/javascript/components/Attachments/Deleted.tsx |