Skip to content

Commit c7315f8

Browse files
committed
lint fixes
1 parent f5b2f75 commit c7315f8

File tree

4 files changed

+35
-32
lines changed

4 files changed

+35
-32
lines changed

contentcuration/contentcuration/frontend/channelList/views/Channel/ChannelInvitation.vue

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<li class="invitation">
55
<div class="invitation__main">
66
<div class="invitation__main--left">
7-
{{ invitationText }}
7+
{{ invitationText }}
88
</div>
99
<div class="invitation__main--right">
1010
<div class="invitation__main--right__btn-one">
@@ -69,13 +69,9 @@
6969
7070
import { mapActions, mapGetters } from 'vuex';
7171
import { InvitationShareModes } from '../../constants';
72-
import MessageDialog from 'shared/views/MessageDialog';
7372
7473
export default {
7574
name: 'ChannelInvitation',
76-
components: {
77-
MessageDialog,
78-
},
7975
props: {
8076
invitationID: {
8177
type: String,
@@ -159,21 +155,26 @@
159155
}
160156
161157
.invitation {
162-
list-style: none;
158+
padding: 16px 16px 0;
163159
font-size: 16px;
164-
padding: 16px 16px 0 16px;
165-
&__main{
160+
list-style: none;
161+
162+
&__main {
166163
display: flex;
167164
align-items: center;
168165
justify-content: space-between;
166+
169167
&--right {
170168
display: flex;
171169
flex-direction: row;
170+
172171
[dir='ltr'] &__btn-one {
173172
margin-right: 15px;
174173
margin-left: 0;
175174
}
176-
[dir='rtl'] &__btn-two, &__btn-one {
175+
176+
[dir='rtl'] &__btn-two,
177+
&__btn-one {
177178
margin-right: 0;
178179
margin-left: 15px;
179180
}
@@ -184,6 +185,7 @@
184185
.modal-actions {
185186
display: flex;
186187
justify-content: end;
188+
187189
&__close {
188190
margin-right: 10px;
189191
}

contentcuration/contentcuration/frontend/channelList/views/ChannelListIndex.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@
165165
GlobalSnackbar,
166166
PolicyModals,
167167
OfflineText,
168-
StudioRaisedBox
168+
StudioRaisedBox,
169169
},
170170
mixins: [constantsTranslationMixin, routerMixin],
171171
computed: {

contentcuration/contentcuration/frontend/shared/views/StudioRaisedBox.vue

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -21,25 +21,26 @@
2121
<script>
2222
2323
export default {
24-
name: 'StudioRaisedBox'
25-
}
24+
name: 'StudioRaisedBox',
25+
};
2626
2727
</script>
2828

2929

3030
<style lang="scss" scoped>
3131
32-
@import '~kolibri-design-system/lib/styles/definitions';
32+
@import '~kolibri-design-system/lib/styles/definitions';
3333
34-
.studio-raised-box {
35-
@extend %dropshadow-2dp;
36-
&__header {
37-
padding: 16px 16px 0 16px;
38-
}
39-
&__main {
40-
padding-bottom: 18px;
34+
.studio-raised-box {
35+
@extend %dropshadow-2dp;
36+
37+
&__header {
38+
padding: 16px 16px 0;
39+
}
40+
41+
&__main {
42+
padding-bottom: 18px;
43+
}
4144
}
42-
43-
}
4445
45-
</style>
46+
</style>

contentcuration/contentcuration/frontend/shared/views/__tests__/StudioRaisedBox.spec.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ describe('StudioRaisedBox', () => {
66
test('renders both header and main slots', () => {
77
const headerContent = 'Header Title';
88
const mainContent = 'Main content area';
9-
render(StudioRaisedBox, {
10-
props: {},
11-
routes: new VueRouter(),
12-
slots: {
13-
header: headerContent,
14-
main: mainContent,
15-
},
16-
});
9+
render(StudioRaisedBox, {
10+
props: {},
11+
routes: new VueRouter(),
12+
slots: {
13+
header: headerContent,
14+
main: mainContent,
15+
},
16+
});
1717
expect(screen.getByText(headerContent)).toBeInTheDocument();
1818
expect(screen.getByText(mainContent)).toBeInTheDocument();
1919
});
20-
});
20+
});

0 commit comments

Comments
 (0)