Skip to content

Commit 3c5be79

Browse files
committed
defaultの削除
1 parent e1179b3 commit 3c5be79

File tree

3 files changed

+15
-5
lines changed

3 files changed

+15
-5
lines changed

src/components/ContentCard.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,7 @@ export default Vue.extend({
6060
props: {
6161
lesson: {
6262
type: Object as () => classData.Lesson,
63-
required: true,
64-
default: () => {}
63+
required: true
6564
},
6665
editable: {
6766
type: Boolean,

src/components/PeriodCardEditable.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export default Vue.extend({
3939
props: {
4040
classData: {
4141
type: Object as () => classData.Lesson,
42-
default: () => {}
42+
required: true
4343
}
4444
},
4545
methods: {

src/pages/terms.vue

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,19 @@
2222
<v-icon v-if="isCheck" color="#0071C2">mdi-check-box-outline</v-icon>
2323
<v-icon v-else color="#0071C2">mdi-checkbox-blank-outline</v-icon>
2424
</label>
25-
<action-button class="Button" theme="primary" text="利用を開始する" />
26-
<action-button class="Button" theme="border" text="同意しない" />
25+
<action-button
26+
:is-disabled="!isCheck"
27+
class="Button"
28+
theme="primary"
29+
text="利用を開始する"
30+
@click="$emit('clickAgreeButton')"
31+
/>
32+
<action-button
33+
class="Button"
34+
theme="border"
35+
text="同意しない"
36+
@click="$router.push('/')"
37+
/>
2738
</div>
2839
</template>
2940

0 commit comments

Comments
 (0)