Skip to content

Commit 8c284dd

Browse files
committed
report UI
1 parent a51cf70 commit 8c284dd

File tree

1 file changed

+19
-3
lines changed

1 file changed

+19
-3
lines changed

frontend/src/components/app/users/UserProfile.vue

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,18 +43,29 @@
4343
</div>
4444
<h1 class="text-purple-matcha text-sm mt-2">Worth 10 likes, and {{user.first_name}} sees your extra interest</h1>
4545
</div>
46-
<div class="text-center p-8 border-b cursor-pointer">
47-
<h1 class="uppercase mx-auto">Block user</h1>
46+
<div class="text-center p-8 border-b cursor-pointer relative">
47+
<DropdownDisplayChoice
48+
v-on:save-single-choice="saveSingleChoice"
49+
class="max-w-xs mx-auto"
50+
v-bind:name="'report'"
51+
v-bind:starting-option="'harassment'"
52+
v-bind:options="['harassment', 'bot', 'spam', 'inappropriate content']"></DropdownDisplayChoice>
53+
<h1 class="onboarding-sub-container-content-button-outline mx-auto">Report</h1>
4854
</div>
4955
<div class="text-center p-8 cursor-pointer">
50-
<h1 class="uppercase mx-auto">Report as fake</h1>
56+
<h1 class="uppercase mx-auto">Block user</h1>
5157
</div>
5258
</div>
5359
</template>
5460

5561
<script>
62+
import DropdownDisplayChoice from '@/components/shared/DropdownDisplayChoice.vue';
63+
5664
export default {
5765
props: ['user'],
66+
components: {
67+
DropdownDisplayChoice,
68+
},
5869
data: () => ({
5970
userInterests: [],
6071
}),
@@ -80,6 +91,11 @@ export default {
8091
}
8192
return 'any gender';
8293
},
94+
saveSingleChoice(...args) {
95+
const [key, value] = args;
96+
console.log(key);
97+
console.log(value);
98+
},
8399
},
84100
async beforeMount() {
85101
const sliderRangesRequest = await this.$http.get('/search/values');

0 commit comments

Comments
 (0)