From 0b537a3851d87fe79ffcf8613e1f4dd685a6bebe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fam=C3=A1=20Rom=C3=A1n?= Date: Fri, 9 Feb 2024 04:17:17 -0300 Subject: [PATCH] minor-feat: possibility to choose which page the "toBack" button appears on --- package.json | 2 +- src/layouts/FramePage.astro | 10 ++++++++-- src/pages/404.astro | 2 +- src/pages/index.astro | 2 +- 4 files changed, 11 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 957dec5..0f9eeab 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "type": "module", "name": "tic-tac-toe-world", - "version": "1.2.5", + "version": "1.2.6", "scripts": { "dev": "astro dev --host", "start:build": "astro check && astro build && astro preview --host", diff --git a/src/layouts/FramePage.astro b/src/layouts/FramePage.astro index 2fb5cf3..0a0859e 100644 --- a/src/layouts/FramePage.astro +++ b/src/layouts/FramePage.astro @@ -1,6 +1,12 @@ --- import { goals, linkedIn, email, repoGithub } from "@/assets/ts/constants"; import { version } from "../../package.json"; + +interface Props { + enabledButtonBack?: boolean +} + +const { enabledButtonBack = true }: Props = Astro.props; ---