Skip to content

Instantly share code, notes, and snippets.

@vsavkin
Created August 8, 2019 17:22
Show Gist options
  • Save vsavkin/a27b1a1b821a8e0da5773741d0b46c87 to your computer and use it in GitHub Desktop.
Save vsavkin/a27b1a1b821a8e0da5773741d0b46c87 to your computer and use it in GitHub Desktop.
import React from 'react';
import { Ticket } from '@happyorg/data';
/* tslint:disable:no-empty-interface */
export interface TicketListProps {
tickets: Ticket[];
}
export const TicketList = (props: TicketListProps) => {
return (
<>
{props.tickets.map(t => (
<p className="ticket flex" key={t.id}>
{t.title}
</p>
))}
</>
);
};
export default TicketList;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment