ContestTable.svelte 471 B

1234567891011121314151617181920212223
  1. <script>
  2. import ContestEntry from "./ContestEntry.svelte";
  3. export let contests = [];
  4. </script>
  5. <table>
  6. <thead>
  7. <tr>
  8. <th>ID</th>
  9. <th>In channel</th>
  10. <th>Date started</th>
  11. <th>Entry phase duration</th>
  12. <th>Vote phase duration</th>
  13. <th>Actions</th>
  14. </tr>
  15. </thead>
  16. <tbody>
  17. {#each contests as contest, i (contest.id)}
  18. <ContestEntry {contest} index={i} />
  19. {/each}
  20. </tbody>
  21. </table>