Skip to content

Commit 9891d06

Browse files
committed
remove unnecessary keys
1 parent fc8bc5f commit 9891d06

7 files changed

Lines changed: 11 additions & 11 deletions

File tree

src/lib/components/Footer.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
<p>{m['common.mission.desc']()}</p>
3333
</div>
3434
<div class="ctas">
35-
{#each buttons as { href, cta} (href)}
35+
{#each buttons as { href, cta}}
3636
<div>
3737
<Button {href} type="medium">{cta}</Button>
3838
</div>

src/lib/components/Header.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868

6969
<nav class="nav" data-test="site-nav">
7070
<div class="nav-items" class:show-nav={showNav}>
71-
{#each navItems as {href, label} (href)}
71+
{#each navItems as {href, label}}
7272
<a
7373
href={href}
7474
class="nav-link"

src/lib/components/Socials.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
</script>
4141

4242
<div class={cssClass}>
43-
{#each socials as { href, cta, src } (href)}
43+
{#each socials as { href, cta, src }}
4444
<a {href} data-test={`social-${cta.toLowerCase()}`}>
4545
<img src={src[type]} alt={cta} />
4646
</a>

src/routes/+page.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
{m['pages.home.overview.header']()}
6969
</h2>
7070

71-
{#each overview as over (over)}
71+
{#each overview as over}
7272
<p>{@html over}</p>
7373
{/each}
7474

@@ -91,7 +91,7 @@
9191
</h2>
9292

9393
<div class="button-row">
94-
{#each buttons as { href, cta, dataTest } (href)}
94+
{#each buttons as { href, cta, dataTest }}
9595
<Button {href} arrow={true} dataTest={dataTest}>
9696
{cta}
9797
</Button>

src/routes/about-us/+page.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
<PageTitle title={m["pages.about.title"]()} />
5353

5454
<Wrapper dataTest="about-page">
55-
{#each sections as section, index (section.key)}
55+
{#each sections as section, index}
5656
<section data-test={`about-us-${section.key}`}>
5757
<Panel type="plain">
5858
{#if index === 0}
@@ -61,7 +61,7 @@
6161
<h2>{section.header}</h2>
6262
{/if}
6363

64-
{#each section.paragraphs as paragraph (paragraph) }
64+
{#each section.paragraphs as paragraph}
6565
<p>{@html paragraph}</p>
6666
{/each}
6767

src/routes/donate/+page.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
<img alt="" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1" />
4040
</form>
4141

42-
{#each buttons as { href, cta } (href)}
42+
{#each buttons as { href, cta }}
4343
<Button {href} type="donate" dataTest={`donate-${cta.toLowerCase()}`}>{cta}</Button>
4444
{/each}
4545
</div>

src/routes/our-sites/+page.svelte

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
<p>{m["pages.sites.details.paragraphs.2"]()}</p>
5555

5656
<ul>
57-
{#each detailsList as detail (detail)}
57+
{#each detailsList as detail}
5858
<li>{detail}</li>
5959
{/each}
6060
</ul>
@@ -66,7 +66,7 @@
6666
<h2>{m["pages.sites.eligibility.header"]()}</h2>
6767
<p>{m["pages.sites.eligibility.paragraphs.0"]()}</p>
6868
<ul>
69-
{#each eligibilityList as eligibility (eligibility)}
69+
{#each eligibilityList as eligibility}
7070
<li>{eligibility}</li>
7171
{/each}
7272
</ul>
@@ -80,7 +80,7 @@
8080
<h3>{m["pages.sites.locations.subheader"]()}</h3>
8181

8282
<div class="locations">
83-
{#each locations as location (location)}
83+
{#each locations as location}
8484
<div class="location">
8585
<img
8686
src={m[`pages.sites.locations.locations.${location}.src`]()}

0 commit comments

Comments
 (0)