このリポジトリは2023-09-09にアーカイブされています。 ファイルの閲覧とクローンは可能ですが、プッシュ、イシューの作成、プルリクエストはできません。
kikikan/backend/resources/js/component/modal_memo.jsx

39 行
1.2 KiB
React
Raw 通常表示 履歴

2021-12-18 16:05:52 +09:00
import React, { useState } from 'react';
2021-12-15 17:59:00 +09:00
import {
Box,
Dialog,
DialogTitle,
Slide,
Typography
} from '@mui/material';
2021-11-15 15:35:26 +09:00
const Transition = React.forwardRef(function Transition(props, ref) {
return <Slide direction="up" ref={ref} {...props} />;
});
2021-12-15 17:59:00 +09:00
export default function ModalMemo({ show, content, handleClose}){
return (
2021-11-15 15:35:26 +09:00
<Dialog
2021-12-15 17:59:00 +09:00
open={show}
TransitionComponent={Transition}
keepMounted
aria-describedby="alert-dialog-slide-description"
onClose={handleClose}
2021-11-15 15:35:26 +09:00
>
2021-12-15 17:59:00 +09:00
<DialogTitle sx={{padding:'20px 10px',textAlign:'center', borderBottom:'1px solid rgb(239 236 236)'}}>
2022-01-17 19:12:50 +09:00
<span className="ft-16 text-center font-weight-bold">メモ</span>
2021-12-15 17:59:00 +09:00
</DialogTitle>
2022-01-17 19:12:50 +09:00
<Box sx={{ p:'10px', pb:'10px'}}>
2021-12-15 17:59:00 +09:00
<Box id="alert-dialog-slide-description">
2022-01-17 19:12:50 +09:00
<Typography component='p' sx={{ minHeight:'175px', whiteSpace:'pre-wrap', bgcolor:'#F0F0F0', p:'15px' }} className="ft-15 text-black">
2021-12-15 17:59:00 +09:00
{content ? content : '未入力'}
</Typography>
</Box>
</Box>
</Dialog>
)
}