Skip to content

Commit

Permalink
changes KLogo props
Browse files Browse the repository at this point in the history
Signed-off-by: shivangrawat30 <[email protected]>
  • Loading branch information
ShivangRawat30 committed Oct 19, 2023
1 parent 36321df commit b07e362
Showing 1 changed file with 7 additions and 29 deletions.
36 changes: 7 additions & 29 deletions lib/KLogo/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
<div>
<KImg
:src="logo"
:altText="alternateText"
:height="imgHeight"
:width="imgWidth"
:maxHeight="imgMaxHeight"
:minHeight="imgMinHeight"
:maxWidth="imgMaxWidth"
:minWidth="imgMinWidth"
:altText="altText"
:height="height"
:width="width"
:maxHeight="maxHeight"
:minHeight="minHeight"
:maxWidth="maxWidth"
:minWidth="minWidth"
/>
</div>

Expand Down Expand Up @@ -74,33 +74,11 @@
},
},
computed: {
alternateText() {
return this.altText;
},
imgHeight() {
return this.validateAndFormatUnits(this.height);
},
imgWidth() {
return this.validateAndFormatUnits(this.width);
},
imgMaxHeight() {
return this.validateAndFormatUnits(this.maxHeight);
},
imgMinHeight() {
return this.validateAndFormatUnits(this.minHeight);
},
imgMaxWidth() {
return this.validateAndFormatUnits(this.maxWidth);
},
imgMinWidth() {
return this.validateAndFormatUnits(this.minWidth);
},
logo() {
return kolibriLogo;
},
},
created() {
console.log(this.altText);
if (!this.altText) {
throw new Error('Missing required prop - provide altText');
}
Expand Down

0 comments on commit b07e362

Please sign in to comment.