Commit dbb4c1c8 authored by Cole Bemis's avatar Cole Bemis

Create IconGrid component

parent 6ebc2a09
<template> <template>
<div> <div>
<icon-container v-for="icon in icons" :name="icon"></icon-container> <icon-grid :icons="icons"></icon-grid>
</div> </div>
</template> </template>
<script> <script>
import {mapState} from 'vuex'; import {mapState} from 'vuex';
import IconContainer from './IconContainer'; import IconGrid from './IconGrid';
export default { export default {
name: 'App', name: 'App',
components: {IconContainer}, components: {IconGrid},
computed: mapState(['icons']) computed: mapState(['icons'])
} }
</script> </script>
......
<template>
<div>
<icon-container v-for="icon in icons" :name="icon"></icon-container>
</div>
</template>
<script>
import IconContainer from './IconContainer';
export default {
name: 'IconGrid',
components: {IconContainer},
props: {
icons: {
type: Array,
required: true
}
}
}
</script>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment