Skip to content

Commit 23bb7e1

Browse files
committed
Contact components refactoring
1 parent 0e92497 commit 23bb7e1

File tree

2 files changed

+11
-13
lines changed

2 files changed

+11
-13
lines changed

src/components/contact/ContactDetails.vue

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
1+
<script>
2+
export default {
3+
props: ['contacts'],
4+
};
5+
</script>
6+
17
<template>
2-
<!-- Contact details -->
38
<div class="w-full md:w-1/2">
49
<div class="text-left max-w-xl px-6">
510
<h2
@@ -31,10 +36,4 @@
3136
</div>
3237
</template>
3338

34-
<script>
35-
export default {
36-
props: ['contacts'],
37-
};
38-
</script>
39-
4039
<style lang="scss" scoped></style>

src/components/contact/ContactForm.vue

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
1+
<script>
2+
import Button from '../reusable/Button.vue';
3+
export default { components: { Button } };
4+
</script>
5+
16
<template>
2-
<!-- Contact form -->
37
<div class="w-full md:w-1/2">
48
<div
59
class="leading-loose max-w-xl m-4 p-7 bg-secondary-light dark:bg-secondary-dark rounded-xl shadow-xl text-left"
@@ -88,9 +92,4 @@
8892
</div>
8993
</template>
9094

91-
<script>
92-
import Button from '../reusable/Button.vue';
93-
export default { components: { Button } };
94-
</script>
95-
9695
<style lang="scss" scoped></style>

0 commit comments

Comments
 (0)