Skip to content

Commit c81d3a8

Browse files
Rename internal component to appSummaryList to work around 'as' bug (#259)
1 parent 7dbc35f commit c81d3a8

9 files changed

Lines changed: 13 additions & 12 deletions

File tree

app/views/_components/check-in/template.njk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
{# app/views/_components/check-in/template.njk #}
33

44
{% from '_components/modal/macro.njk' import appModal %}
5-
{% from '_components/summary-list/macro.njk' import appSummaryList as summaryList %}
5+
{% from '_components/summary-list/macro.njk' import appSummaryList %}
66
{% from '_components/summary-list/macro.njk' import appSummaryListRow %}
77

88
{# Build check-in href #}

app/views/_components/event-status/template.njk

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

33
{% from 'tag/macro.njk' import tag %}
44
{% from '_components/modal/macro.njk' import appModal %}
5-
{% from '_components/summary-list/macro.njk' import appSummaryList as summaryList %}
5+
{% from '_components/summary-list/macro.njk' import appSummaryList %}
66
{% from '_components/summary-list/macro.njk' import appSummaryListRow %}
77

88
{% set tagClasses %}

app/views/_includes/confirm-identity-modal.njk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
</p>
1616

1717
{% set cardHtml %}
18-
{% call summaryList() %}
18+
{% call appSummaryList() %}
1919
{% include "_includes/summary-lists/rows/full-name.njk" %}
2020
{% include "_includes/summary-lists/rows/date-of-birth.njk" %}
2121

app/views/_includes/medical-information/medical-history/index.njk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{# app/views/_includes/medical-information/medical-history/index.njk #}
22

33
{# Need to manually inmport these as this is an include #}
4-
{% from '_components/summary-list/macro.njk' import appSummaryList as summaryList %}
4+
{% from '_components/summary-list/macro.njk' import appSummaryList %}
55
{% from '_components/summary-list/macro.njk' import appSummaryListRow as summaryListRow %}
66

77
{# ============================================================ #}
@@ -498,7 +498,7 @@
498498
{# ============================================================ #}
499499

500500
{% set historyItemContents %}
501-
{% call summaryList() %}
501+
{% call appSummaryList() %}
502502

503503
{# Breast cancer #}
504504
{% if typeData.type == 'breastCancer' %}

app/views/_includes/summary-lists/demographic-information/contact-details.njk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{% call summaryList({
1+
{% call appSummaryList({
22
}) %}
33
{% include "../rows/address.njk" %}
44
{% include "../rows/phone-numbers.njk" %}
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{% call summaryList(
1+
{% call appSummaryList(
22
) %}
33
{% include "_includes/summary-lists/rows/nhs-number.njk" %}
44
{% include "_includes/summary-lists/rows/full-name.njk" %}
@@ -8,5 +8,6 @@
88
{% set noBorder = true %}
99
{% endif %}
1010
{% include "_includes/summary-lists/rows/ethnicity.njk" %}
11-
{% include "_includes/summary-lists/rows/gp.njk" %}
11+
{# GP disabled until we're confident we need it #}
12+
{# {% include "_includes/summary-lists/rows/gp.njk" %} #}
1213
{% endcall %}

app/views/_includes/summary-lists/screening-details.njk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
{% call summaryList(
2+
{% call appSummaryList(
33
) %}
44
{% include "_includes/summary-lists/rows/sx-number.njk" %}
55
{% include "_includes/summary-lists/rows/screening-protocol.njk" %}

app/views/events/check-information.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131

3232
{# Personal information #}
3333
{% set participantDetailsHtml %}
34-
{% call summaryList() %}
34+
{% call appSummaryList() %}
3535

3636
{{ appSummaryListRow({
3737
key: {
@@ -79,7 +79,7 @@
7979

8080
{# Include the personal details summary in a feature card #}
8181
{% set participantDetailsHtml %}
82-
{% call summaryList() %}
82+
{% call appSummaryList() %}
8383
{% include "_includes/summary-lists/rows/nhs-number.njk" %}
8484
{% include "_includes/summary-lists/rows/full-name.njk" %}
8585
{% include "_includes/summary-lists/rows/date-of-birth.njk" %}

app/views/events/confirm-information/personal-details.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ <h1>{{ pageHeading }}</h1>
2424

2525
{# Include the personal details summary in a feature card #}
2626
{% set participantDetailsHtml %}
27-
{% call summaryList() %}
27+
{% call appSummaryList() %}
2828
{% include "_includes/summary-lists/rows/nhs-number.njk" %}
2929
{% include "_includes/summary-lists/rows/full-name.njk" %}
3030
{% include "_includes/summary-lists/rows/date-of-birth.njk" %}

0 commit comments

Comments
 (0)