Chore: UI Cleanup in modals (#873)

* Chore: UI Cleanup in modals

* Fix review comments
This commit is contained in:
Pranav Raj S 2020-05-17 21:07:45 +05:30 committed by GitHub
parent 59f4dd7ebe
commit 246d0b407f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
25 changed files with 101 additions and 231 deletions

View file

@ -0,0 +1,32 @@
<template>
<modal :show.sync="show" :on-close="onClose">
<woot-modal-header :header-title="title" :header-content="message" />
<div class="modal-footer delete-item">
<button class="alert button nice" @click="onConfirm">
{{ confirmText }}
</button>
<button class="button clear" @click="onClose">
{{ rejectText }}
</button>
</div>
</modal>
</template>
<script>
import Modal from '../../Modal';
export default {
components: {
Modal,
},
props: {
show: Boolean,
onClose: Function,
onConfirm: Function,
title: String,
message: String,
confirmText: String,
rejectText: String,
},
};
</script>