feat: remove no longer needed isWarn property and injection key

This commit is contained in:
Sebin Nyshkim 2023-04-02 17:45:08 +02:00
parent cc664a764d
commit b8c9d8de17
5 changed files with 4 additions and 10 deletions

View file

@ -1,6 +1,6 @@
<script setup lang="ts">
import { inject } from "vue";
import { isWarnKey, nsfwKey, showModalKey } from "@/keys";
import { nsfwKey, showModalKey } from "@/keys";
import type { ColorDict } from "@/interfaces";
import { tailLength, wingspan, penis, colors } from "@/sebin";
import { toImperial, toFahrenheit } from "@/helpers";
@ -33,7 +33,6 @@ const sebinPenisData = [
];
const isNsfw = inject<boolean>(nsfwKey, false);
const isWarn = inject<boolean>(isWarnKey, false);
const showModal = inject<Function>(showModalKey, Function);
</script>

View file

@ -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<boolean>(nsfwKey, false);
const isWarn = inject<boolean>(isWarnKey, false);
const showModal = inject<Function>(showModalKey, Function);
</script>

View file

@ -1,13 +1,12 @@
<script setup lang="ts">
import { inject } from "vue";
import { isWarnKey, nsfwKey, showModalKey } from "@/keys";
import { nsfwKey, showModalKey } from "@/keys";
import RefToggle from "@/components/RefToggle.vue";
import WelcomeHeader from "@/components/WelcomeHeader.vue";
import ButtonGroup from "@/components/ButtonGroup.vue";
import Button from "@/components/RefButton.vue";
const isNsfw = inject<boolean>(nsfwKey, false);
const isWarn = inject<boolean>(isWarnKey, false);
const showModal = inject<Function>(showModalKey, Function);
</script>