feat: ♻️ use slots in NSFW warning

This commit is contained in:
Sebin Nyshkim 2020-12-21 18:33:17 +01:00
parent e0f87d054c
commit f1cb1bbfbd
2 changed files with 18 additions and 8 deletions

View file

@ -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"