Commit dbb4c1c8 authored by Cole Bemis's avatar Cole Bemis

Create IconGrid component

parent 6ebc2a09
<template>
<div>
<icon-container v-for="icon in icons" :name="icon"></icon-container>
<icon-grid :icons="icons"></icon-grid>
</div>
</template>
<script>
import {mapState} from 'vuex';
import IconContainer from './IconContainer';
import IconGrid from './IconGrid';
export default {
name: 'App',
components: {IconContainer},
components: {IconGrid},
computed: mapState(['icons'])
}
</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