Skip to content

Commit 6acc074

Browse files
authored
feat: update button variant to 'state_fully_repaid' in RepaidButton component and test (#987)
1 parent cb57f50 commit 6acc074

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

client/src/views/components/RepaidButton.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<template #activator="{ props }">
55
<simple-button
66
:label="'払い戻し済みのユーザーを選択'"
7-
:variant="'done'"
7+
:variant="'state_fully_repaid'"
88
v-bind="props"
99
/>
1010
</template>
@@ -34,7 +34,7 @@
3434
<simple-button
3535
:label="'OK'"
3636
:disabled="traPID.length === 0"
37-
:variant="'done'"
37+
:variant="'state_fully_repaid'"
3838
@click="putRepaid(traPID, date)"
3939
/>
4040
</v-card>

client/tests/views/components/RepaidButton.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ describe("RepaidButton.vue", () => {
3333
const btn = wrapper.findComponent(SimpleButton);
3434
expect(btn.exists()).toBe(true);
3535
expect(btn.props("label")).toBe("払い戻し済みのユーザーを選択");
36-
expect(btn.props("variant")).toBe("done");
36+
expect(btn.props("variant")).toBe("state_fully_repaid");
3737
});
3838

3939
it("disables OK button when no user is selected", async () => {

0 commit comments

Comments
 (0)