From b8c9d8de1715d55a8b1fc3e47f868e9fe5042df8 Mon Sep 17 00:00:00 2001 From: Sebin Nyshkim Date: Sun, 2 Apr 2023 17:45:08 +0200 Subject: [PATCH] feat: remove no longer needed isWarn property and injection key --- src/App.vue | 4 +--- src/keys.ts | 1 - src/views/AnatomyView.vue | 3 +-- src/views/GeneralView.vue | 3 +-- src/views/HomeView.vue | 3 +-- 5 files changed, 4 insertions(+), 10 deletions(-) diff --git a/src/App.vue b/src/App.vue index 23b3a32..c123fcd 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,7 +1,7 @@ diff --git a/src/views/GeneralView.vue b/src/views/GeneralView.vue index 655583f..73a80db 100644 --- a/src/views/GeneralView.vue +++ b/src/views/GeneralView.vue @@ -16,7 +16,7 @@ import { kinks, } from "@/sebin"; import { dateFormat, getAge, toImperial, toLbs } from "@/helpers"; -import { isWarnKey, nsfwKey, showModalKey } from "@/keys"; +import { nsfwKey, showModalKey } from "@/keys"; import type { Kink } from "@/interfaces"; import DataTable from "@/components/DataTable.vue"; import QuickFacts from "@/components/QuickFacts.vue"; @@ -51,7 +51,6 @@ const kinksData = kinks.map((kink: Kink): string[] => { }); const isNsfw = inject(nsfwKey, false); -const isWarn = inject(isWarnKey, false); const showModal = inject(showModalKey, Function); diff --git a/src/views/HomeView.vue b/src/views/HomeView.vue index 98c2566..345d189 100644 --- a/src/views/HomeView.vue +++ b/src/views/HomeView.vue @@ -1,13 +1,12 @@