Skip to content

Commit

Permalink
Fix cookie path in examples
Browse files Browse the repository at this point in the history
  • Loading branch information
ahosgood committed Jan 26, 2024
1 parent 9eefcd8 commit 33b2c08
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,15 @@ const Template = ({
export const Standard = Template.bind({});
Standard.args = {
cookiesUrl: "#",
cookiesPath: "/tna-frontend/",
classes: "tna-cookie-banner--demo",
};

export const Accept = Template.bind({});
Accept.args = {
serviceName: "My service",
cookiesUrl: "#",
cookiesPath: "/tna-frontend/",
allowInsecure: true,
style: "contrast",
classes: "tna-cookie-banner--demo",
Expand Down Expand Up @@ -112,6 +114,7 @@ export const Reject = Template.bind({});
Reject.args = {
serviceName: "My service",
cookiesUrl: "#",
cookiesPath: "/tna-frontend/",
style: "contrast",
classes: "tna-cookie-banner--demo",
};
Expand Down Expand Up @@ -149,6 +152,7 @@ export const CustomPolicies = Template.bind({});
CustomPolicies.args = {
serviceName: "My service",
cookiesUrl: "#",
cookiesPath: "/tna-frontend/",
policies: "custom",
style: "contrast",
classes: "tna-cookie-banner--demo",
Expand Down Expand Up @@ -185,6 +189,7 @@ export const Existing = Template.bind({});
Existing.args = {
serviceName: "My service",
cookiesUrl: "#",
cookiesPath: "/tna-frontend/",
allowInsecure: true,
style: "contrast",
classes: "tna-cookie-banner--demo",
Expand Down Expand Up @@ -221,6 +226,7 @@ Existing.play = async ({ canvasElement }) => {
// EventHandling.args = {
// serviceName: "My service",
// cookiesUrl: "#",
// cookiesPath: "/tna-frontend/",
// policies: "custom",
// classes: "tna-cookie-banner--demo",
// };
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ const Template = ({ theme, accent }) => {
${CookieBanner({
params: {
cookiesUrl: "#",
cookiesPath: "/tna-frontend/",
},
})}
-->
Expand Down
3 changes: 2 additions & 1 deletion src/nationalarchives/templates/layouts/_generic.njk
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@
{% block bodyStart %}
{% block cookies %}
{{ tnaCookieBanner({
url: '#'
cookiesUrl: '#',
cookiesPath: "/tna-frontend/"
}) }}
{% endblock %}

Expand Down

0 comments on commit 33b2c08

Please sign in to comment.