-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #141 from traPtitech/feat/request_detail
申請詳細ページをFigmaに合わせる
- Loading branch information
Showing
40 changed files
with
804 additions
and
687 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,27 @@ | ||
<script lang="ts" setup> | ||
import { storeToRefs } from 'pinia' | ||
import { useRequestDetailStore } from '/@/stores/requestDetail' | ||
import { useNewComment } from '/@/components/requestDetail/composables/useNewComment' | ||
import MarkdownTextarea from '/@/components/shared/MarkdownTextarea.vue' | ||
import SimpleButton from '/@/components/shared/SimpleButton.vue' | ||
import type { RequestDetail } from '/@/features/request/model' | ||
const props = defineProps<{ | ||
request: RequestDetail | ||
}>() | ||
const requestDetailStore = useRequestDetailStore() | ||
const { request } = storeToRefs(requestDetailStore) | ||
const { comment, isSending, submit } = useNewComment(request.value?.id ?? '') | ||
const { comment, isSending, submit } = useNewComment(props.request.id) | ||
</script> | ||
|
||
<template> | ||
<form class="mx-4 w-full"> | ||
<MarkdownTextarea v-model="comment" placeholder="コメント" /> | ||
<div class="mt-1"> | ||
<div class="w-full"> | ||
<MarkdownTextarea v-model="comment"> | ||
<SimpleButton | ||
class="ml-auto" | ||
:disabled="isSending" | ||
font-size="md" | ||
padding="sm" | ||
@click.prevent="submit"> | ||
padding="md" | ||
type="success" | ||
@click="submit"> | ||
コメントする | ||
</SimpleButton> | ||
</div> | ||
</form> | ||
</MarkdownTextarea> | ||
</div> | ||
</template> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.