Skip to content

Commit

Permalink
refactor: add prop types
Browse files Browse the repository at this point in the history
  • Loading branch information
nlopin committed Jun 24, 2024
1 parent a0ad1fd commit 1245ac1
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion frontend/static/js/components/ReplyContainer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,27 @@
<script>
export default {
name: 'ReplyContainer',
props: ["replyTo", "commentOrder", "avatarUrl", "username", "createCommentUrl"],
props: {
replyTo: {
type: Object
},
commentOrder: {
type: String,
required: true
},
avatarUrl: {
type: String,
required: true
},
username: {
type: String,
required: true
},
createCommentUrl: {
type: String,
required: true
},
},
computed: {
avatarAlt: function() {
return `Аватар ${this.$props.username}`
Expand Down

0 comments on commit 1245ac1

Please sign in to comment.