feat: ♻️ use slots in NSFW warning
This commit is contained in:
parent
e0f87d054c
commit
f1cb1bbfbd
2 changed files with 18 additions and 8 deletions
15
src/App.vue
15
src/App.vue
|
@ -1,6 +1,19 @@
|
|||
<template>
|
||||
<div id="app">
|
||||
<nsfw-warning v-show="isWarn"></nsfw-warning>
|
||||
<nsfw-warning v-show="isWarn">
|
||||
<template v-slot:heading>
|
||||
⚠️⚠️⚠️<br />
|
||||
Whoa, Nelly!
|
||||
</template>
|
||||
|
||||
<template v-slot:message>
|
||||
By enabling NSFW mode you confirm that you are of legal age to view
|
||||
adult content.
|
||||
</template>
|
||||
|
||||
<template v-slot:yes>Yes, show me the goods 👀</template>
|
||||
<template v-slot:no>NO, STAHP 😱</template>
|
||||
</nsfw-warning>
|
||||
|
||||
<ref-header
|
||||
mainHeading="Sebin Nyshkim"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue