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

47 行
1.9 KiB
React
Raw 通常表示 履歴

2021-10-06 11:31:51 +09:00
import React, { useState } from 'react';
2021-09-29 23:52:07 +09:00
import { Button } from '@material-ui/core';
2021-10-01 18:50:43 +09:00
import Alert from '../../component/alert';
2021-09-29 23:52:07 +09:00
2021-09-29 23:38:39 +09:00
2021-10-06 11:31:51 +09:00
2021-10-06 03:23:58 +09:00
const ContactComplete = () => {
2021-10-01 18:50:43 +09:00
const [contactEmail, SetContactEmail] = useState('sample@gmail.com');
const [saveFlag, SetSaveFlag] = useState(false);
const saveStorage = () => {
navigator.clipboard.writeText(contactEmail).then(function() {
SetSaveFlag(true);
})
}
2021-09-29 23:38:39 +09:00
return (
2021-09-29 23:52:07 +09:00
<div>
2021-09-30 13:38:14 +09:00
<p className="text-center font-weight-bold ft-20">お問い合わせ完了</p>
2021-10-02 21:16:16 +09:00
<span className="mt-80-px ft-16 ft-md-13 l-alert__text--success">
2021-09-30 13:38:14 +09:00
お問い合わせが完了しました<br/>
3営業日以内にお返事させていただきます<br/><br/>
2021-09-29 23:52:07 +09:00
万が一届かない場合は以下のメールアドレスに 直接ご連絡くださいませ
2021-10-02 21:16:16 +09:00
</span>
2021-09-30 16:50:44 +09:00
2021-10-06 11:31:51 +09:00
<div className="p-3 my-5 border text-center font-weight-bold">
2021-10-05 04:11:31 +09:00
<p className="m-0 scale-1 pointer ft-xs-16" onClick={saveStorage}>{contactEmail}</p>
2021-10-01 18:50:43 +09:00
</div>
2021-09-30 16:50:44 +09:00
2021-10-01 18:50:43 +09:00
<div className="d-flex justify-content-between">
2021-09-30 20:54:09 +09:00
<div className="w-50 pr-1">
2021-10-24 00:13:32 +09:00
<Button fullWidth className="p-4 rounded-20 ft-16 ft-md-13 font-weight-bold text-black bg-yellow" onClick={()=>{window.location.href="/login/p-account/"}}>親ログイン画面へ</Button>
2021-09-29 23:52:07 +09:00
</div>
2021-09-30 16:50:44 +09:00
<div className="w-50 pl-1">
2021-10-24 00:13:32 +09:00
<Button fullWidth className="p-4 rounded-20 ft-16 ft-md-13 font-weight-bold text-black bg-yellow" onClick={()=>{window.location.href="/login/c-account/"}}>子ログイン画面へ</Button>
2021-09-29 23:38:39 +09:00
</div>
2021-09-29 23:52:07 +09:00
</div>
2021-10-01 18:50:43 +09:00
{
2021-10-05 03:07:23 +09:00
saveFlag && <Alert type="success" hide={()=>SetSaveFlag(false)}>メールアドレスのコビーに成功しました!</Alert>
2021-10-01 18:50:43 +09:00
}
2021-09-29 23:52:07 +09:00
</div>
2021-09-29 23:38:39 +09:00
)
}
2021-10-06 03:23:58 +09:00
export default ContactComplete;