Skip to content

Commit a75a5f4

Browse files
author
Dobromir Hristov
committed
fix: merge conflict from renaming Grid to Row
1 parent 7869e92 commit a75a5f4

File tree

2 files changed

+7
-15
lines changed

2 files changed

+7
-15
lines changed

src/components/DocumentationTopic/TopicsLinkCardGrid.vue

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,26 +10,26 @@
1010

1111
<template>
1212
<div class="TopicsLinkCardGrid">
13-
<Grid :columns="compactCards ? 3 : 2">
13+
<Row :columns="compactCards ? 3 : 2">
1414
<Column
1515
v-for="(item, index) in items"
1616
:key="index"
1717
>
1818
<TopicsLinkCardGridItem :item="item" :compact="compactCards" />
1919
</Column>
20-
</Grid>
20+
</Row>
2121
</div>
2222
</template>
2323

2424
<script>
25-
import Grid from 'docc-render/components/ContentNode/Grid.vue';
25+
import Row from 'docc-render/components/ContentNode/Row.vue';
2626
import Column from 'docc-render/components/ContentNode/Column.vue';
2727
import { TopicStyles } from 'docc-render/constants/TopicStyles';
2828
import TopicsLinkCardGridItem from './TopicsLinkCardGridItem.vue';
2929
3030
export default {
3131
name: 'TopicsLinkCardGrid',
32-
components: { TopicsLinkCardGridItem, Column, Grid },
32+
components: { TopicsLinkCardGridItem, Column, Row },
3333
inject: ['references'],
3434
props: {
3535
identifiers: {
@@ -49,11 +49,3 @@ export default {
4949
},
5050
};
5151
</script>
52-
53-
<style scoped lang='scss'>
54-
@import 'docc-render/styles/_core.scss';
55-
56-
.grid {
57-
grid-gap: 20px;
58-
}
59-
</style>

tests/unit/components/DocumentationTopic/TopicsLinkCardGrid.spec.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
import TopicsLinkCardGrid from '@/components/DocumentationTopic/TopicsLinkCardGrid.vue';
1212
import { shallowMount } from '@vue/test-utils';
1313
import { TopicStyles } from '@/constants/TopicStyles';
14-
import Grid from '@/components/ContentNode/Grid.vue';
14+
import Row from '@/components/ContentNode/Row.vue';
1515
import Column from '@/components/ContentNode/Column.vue';
1616
import TopicsLinkCardGridItem from '@/components/DocumentationTopic/TopicsLinkCardGridItem.vue';
1717

@@ -35,7 +35,7 @@ const createWrapper = ({ propsData, ...others } = {}) => shallowMount(TopicsLink
3535
describe('TopicsLinkCardGrid', () => {
3636
it('renders the TopicsLinkCardGrid', () => {
3737
const wrapper = createWrapper();
38-
expect(wrapper.find(Grid).props()).toEqual({
38+
expect(wrapper.find(Row).props()).toEqual({
3939
columns: 3, // compact grid is a 3 column setup
4040
});
4141
const cols = wrapper.findAll(Column);
@@ -53,7 +53,7 @@ describe('TopicsLinkCardGrid', () => {
5353
topicStyle: TopicStyles.detailedGrid,
5454
},
5555
});
56-
expect(wrapper.find(Grid).props()).toEqual({
56+
expect(wrapper.find(Row).props()).toEqual({
5757
columns: 2, // detailed grid is a 2 column setup
5858
});
5959
expect(wrapper.find(TopicsLinkCardGridItem).props('compact')).toBe(false);

0 commit comments

Comments
 (0)