mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
Merge pull request #626 from Human-Connection/613_revert-empty-component-to-use-img-tag
Refactor to use <img> instead of <hc-image> component for images
This commit is contained in:
commit
d73ec2288e
@ -5,8 +5,8 @@
|
||||
:margin="margin"
|
||||
>
|
||||
<ds-text>
|
||||
<hc-image
|
||||
:image-props="{ src: imgSrc }"
|
||||
<img
|
||||
:src="iconPath"
|
||||
width="80"
|
||||
class="hc-empty-icon"
|
||||
style="margin-bottom: 5px"
|
||||
@ -24,12 +24,8 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import HcImage from '~/components/Image'
|
||||
export default {
|
||||
name: 'HcEmpty',
|
||||
components: {
|
||||
HcImage
|
||||
},
|
||||
props: {
|
||||
/**
|
||||
* Icon that should be shown
|
||||
@ -58,7 +54,7 @@ export default {
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
imgSrc() {
|
||||
iconPath() {
|
||||
return `/img/empty/${this.icon}.svg`
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user