From 1255e05420a145e0494fd9c62f734d387d40fc67 Mon Sep 17 00:00:00 2001 From: Yanick Champoux Date: Tue, 21 Mar 2023 13:57:43 -0400 Subject: [PATCH] carrier component --- .../components/ShipEdit/Carrier.story.svelte | 8 +++++ src/lib/components/ShipEdit/Carrier.svelte | 34 +++++++++++++++++++ .../ShipEdit/Carrier/Squadron.svelte | 14 ++++---- .../components/ShipEdit/Carrier/index.svelte | 34 ------------------- 4 files changed, 50 insertions(+), 40 deletions(-) create mode 100644 src/lib/components/ShipEdit/Carrier.story.svelte create mode 100644 src/lib/components/ShipEdit/Carrier.svelte delete mode 100644 src/lib/components/ShipEdit/Carrier/index.svelte diff --git a/src/lib/components/ShipEdit/Carrier.story.svelte b/src/lib/components/ShipEdit/Carrier.story.svelte new file mode 100644 index 0000000..7d5bf32 --- /dev/null +++ b/src/lib/components/ShipEdit/Carrier.story.svelte @@ -0,0 +1,8 @@ + + + + + diff --git a/src/lib/components/ShipEdit/Carrier.svelte b/src/lib/components/ShipEdit/Carrier.svelte new file mode 100644 index 0000000..017bae2 --- /dev/null +++ b/src/lib/components/ShipEdit/Carrier.svelte @@ -0,0 +1,34 @@ +
+ + + + + + + {#each squadrons as squadron, id (id)} + + {/each} +
+ + + + diff --git a/src/lib/components/ShipEdit/Carrier/Squadron.svelte b/src/lib/components/ShipEdit/Carrier/Squadron.svelte index 388ee55..eae0a30 100644 --- a/src/lib/components/ShipEdit/Carrier/Squadron.svelte +++ b/src/lib/components/ShipEdit/Carrier/Squadron.svelte @@ -1,4 +1,5 @@ + - -