remove input-hidden of p-account id
このコミットが含まれているのは:
コミット
2323608301
|
@ -47608,7 +47608,7 @@ var ChildDetail = function ChildDetail(props) {
|
|||
_success = _useState16[0],
|
||||
setSuccess = _useState16[1];
|
||||
|
||||
var father_id = document.getElementById('father_id').value;
|
||||
var father_id = localStorage.getItem('kiki_acc_id');
|
||||
var child_id = props.match.params.child_id;
|
||||
var isMountedRef = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(true);
|
||||
(0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default().mark(function _callee() {
|
||||
|
@ -47927,7 +47927,7 @@ var ChildEdit = function ChildEdit(props) {
|
|||
loaded = _useState16[0],
|
||||
setLoaded = _useState16[1];
|
||||
|
||||
var father_id = document.getElementById('father_id').value;
|
||||
var father_id = localStorage.getItem('kiki_acc_id');
|
||||
var child_id = props.match.params.child_id;
|
||||
var isMountedRef = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(true);
|
||||
(0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default().mark(function _callee() {
|
||||
|
@ -48183,6 +48183,8 @@ var Child = function Child(props) {
|
|||
notice = _useState2[0],
|
||||
setNotice = _useState2[1];
|
||||
|
||||
var father_id = localStorage.getItem('kiki_acc_id');
|
||||
|
||||
var _useState3 = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)([]),
|
||||
_useState4 = _slicedToArray(_useState3, 2),
|
||||
children_list = _useState4[0],
|
||||
|
@ -48210,15 +48212,13 @@ var Child = function Child(props) {
|
|||
|
||||
var isMountedRef = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(true);
|
||||
(0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default().mark(function _callee() {
|
||||
var father_id;
|
||||
return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default().wrap(function _callee$(_context) {
|
||||
while (1) {
|
||||
switch (_context.prev = _context.next) {
|
||||
case 0:
|
||||
isMountedRef.current = false;
|
||||
setLoaded(false);
|
||||
father_id = document.getElementById('father_id').value;
|
||||
_context.next = 5;
|
||||
_context.next = 4;
|
||||
return axios.get('/api/fathers/children/listOfFather', {
|
||||
params: {
|
||||
father_id: father_id
|
||||
|
@ -48236,7 +48236,7 @@ var Child = function Child(props) {
|
|||
}
|
||||
});
|
||||
|
||||
case 5:
|
||||
case 4:
|
||||
case "end":
|
||||
return _context.stop();
|
||||
}
|
||||
|
@ -48426,6 +48426,8 @@ var Favorite = function Favorite(props) {
|
|||
notice = _useState2[0],
|
||||
setNotice = _useState2[1];
|
||||
|
||||
var father_id = localStorage.getItem('kiki_acc_id');
|
||||
|
||||
var _useState3 = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(false),
|
||||
_useState4 = _slicedToArray(_useState3, 2),
|
||||
tab_status = _useState4[0],
|
||||
|
@ -48481,15 +48483,13 @@ var Favorite = function Favorite(props) {
|
|||
setLoaded(loaded1 && loaded2);
|
||||
}, [loaded1, loaded2]);
|
||||
(0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default().mark(function _callee() {
|
||||
var father_id;
|
||||
return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default().wrap(function _callee$(_context) {
|
||||
while (1) {
|
||||
switch (_context.prev = _context.next) {
|
||||
case 0:
|
||||
isMountedRef.current = false;
|
||||
setLoaded(false);
|
||||
father_id = document.getElementById('father_id').value;
|
||||
_context.next = 5;
|
||||
_context.next = 4;
|
||||
return axios.get('/api/fathers/meetings/listOfNonFavoriteOfFather', {
|
||||
params: {
|
||||
father_id: father_id
|
||||
|
@ -48525,8 +48525,8 @@ var Favorite = function Favorite(props) {
|
|||
}
|
||||
});
|
||||
|
||||
case 5:
|
||||
_context.next = 7;
|
||||
case 4:
|
||||
_context.next = 6;
|
||||
return axios.get('/api/fathers/meetings/listOfFavoriteOfFather', {
|
||||
params: {
|
||||
father_id: father_id
|
||||
|
@ -48562,7 +48562,7 @@ var Favorite = function Favorite(props) {
|
|||
}
|
||||
});
|
||||
|
||||
case 7:
|
||||
case 6:
|
||||
case "end":
|
||||
return _context.stop();
|
||||
}
|
||||
|
@ -49129,7 +49129,7 @@ var MeetingAdd = function MeetingAdd(props) {
|
|||
var _ref3;
|
||||
|
||||
var history = (0,react_router_dom__WEBPACK_IMPORTED_MODULE_8__.useHistory)();
|
||||
var father_id = document.getElementById('father_id').value;
|
||||
var father_id = localStorage.getItem('kiki_acc_id');
|
||||
|
||||
var _useState = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(localStorage.getItem('notice')),
|
||||
_useState2 = _slicedToArray(_useState, 2),
|
||||
|
@ -49782,25 +49782,27 @@ var MeetingDetail = function MeetingDetail(props) {
|
|||
|
||||
var history = (0,react_router_dom__WEBPACK_IMPORTED_MODULE_12__.useHistory)();
|
||||
|
||||
var _useState = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(false),
|
||||
var _useState = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(localStorage.getItem('notice')),
|
||||
_useState2 = _slicedToArray(_useState, 2),
|
||||
loaded = _useState2[0],
|
||||
setLoaded = _useState2[1];
|
||||
notice = _useState2[0],
|
||||
setNotice = _useState2[1];
|
||||
|
||||
var father_id = localStorage.getItem('kiki_acc_id');
|
||||
|
||||
var _useState3 = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(false),
|
||||
_useState4 = _slicedToArray(_useState3, 2),
|
||||
submit_delete = _useState4[0],
|
||||
setSubmitDelete = _useState4[1];
|
||||
loaded = _useState4[0],
|
||||
setLoaded = _useState4[1];
|
||||
|
||||
var _useState5 = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(false),
|
||||
_useState6 = _slicedToArray(_useState5, 2),
|
||||
submit_notify = _useState6[0],
|
||||
setSubmitNotify = _useState6[1];
|
||||
submit_delete = _useState6[0],
|
||||
setSubmitDelete = _useState6[1];
|
||||
|
||||
var _useState7 = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(localStorage.getItem('notice')),
|
||||
var _useState7 = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(false),
|
||||
_useState8 = _slicedToArray(_useState7, 2),
|
||||
notice = _useState8[0],
|
||||
setNotice = _useState8[1];
|
||||
submit_notify = _useState8[0],
|
||||
setSubmitNotify = _useState8[1];
|
||||
|
||||
var _useState9 = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(props.history.location.state),
|
||||
_useState10 = _slicedToArray(_useState9, 2),
|
||||
|
@ -49856,15 +49858,13 @@ var MeetingDetail = function MeetingDetail(props) {
|
|||
(0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default().mark(function _callee() {
|
||||
var _props$match$params;
|
||||
|
||||
var father_id;
|
||||
return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default().wrap(function _callee$(_context) {
|
||||
while (1) {
|
||||
switch (_context.prev = _context.next) {
|
||||
case 0:
|
||||
isMountedRef.current = false;
|
||||
father_id = document.getElementById('father_id').value;
|
||||
setLoaded(false);
|
||||
_context.next = 5;
|
||||
_context.next = 4;
|
||||
return axios.get("/api/fathers/meetings/detail/".concat((_props$match$params = props.match.params) === null || _props$match$params === void 0 ? void 0 : _props$match$params.meeting_id), {
|
||||
params: {
|
||||
father_id: father_id
|
||||
|
@ -49902,7 +49902,7 @@ var MeetingDetail = function MeetingDetail(props) {
|
|||
}
|
||||
});
|
||||
|
||||
case 5:
|
||||
case 4:
|
||||
case "end":
|
||||
return _context.stop();
|
||||
}
|
||||
|
@ -50417,7 +50417,7 @@ var MeetingEdit = function MeetingEdit(props) {
|
|||
var _ref5;
|
||||
|
||||
var history = (0,react_router_dom__WEBPACK_IMPORTED_MODULE_9__.useHistory)();
|
||||
var father_id = document.getElementById('father_id').value;
|
||||
var father_id = localStorage.getItem('kiki_acc_id');
|
||||
var meeting_id = props.match.params.meeting_id;
|
||||
|
||||
var _useState = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(localStorage.getItem('notice')),
|
||||
|
@ -51204,6 +51204,8 @@ var Meeting = function Meeting(props) {
|
|||
notice = _useState2[0],
|
||||
setNotice = _useState2[1];
|
||||
|
||||
var father_id = localStorage.getItem('kiki_acc_id');
|
||||
|
||||
var _useState3 = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(false),
|
||||
_useState4 = _slicedToArray(_useState3, 2),
|
||||
tab_status = _useState4[0],
|
||||
|
@ -51273,15 +51275,13 @@ var Meeting = function Meeting(props) {
|
|||
setLoaded(loaded1 && loaded2);
|
||||
}, [loaded1, loaded2]);
|
||||
(0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default().mark(function _callee() {
|
||||
var father_id;
|
||||
return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default().wrap(function _callee$(_context) {
|
||||
while (1) {
|
||||
switch (_context.prev = _context.next) {
|
||||
case 0:
|
||||
isMountedRef.current = false;
|
||||
setLoaded(false);
|
||||
father_id = document.getElementById('father_id').value;
|
||||
_context.next = 5;
|
||||
_context.next = 4;
|
||||
return axios.get('/api/fathers/meetings/listOfIncompleteOfFather', {
|
||||
params: {
|
||||
father_id: father_id
|
||||
|
@ -51317,8 +51317,8 @@ var Meeting = function Meeting(props) {
|
|||
return console.log(err);
|
||||
});
|
||||
|
||||
case 5:
|
||||
_context.next = 7;
|
||||
case 4:
|
||||
_context.next = 6;
|
||||
return axios.get('/api/fathers/meetings/listOfCompleteOfFather', {
|
||||
params: {
|
||||
father_id: father_id
|
||||
|
@ -51354,7 +51354,7 @@ var Meeting = function Meeting(props) {
|
|||
return console.log(err);
|
||||
});
|
||||
|
||||
case 7:
|
||||
case 6:
|
||||
case "end":
|
||||
return _context.stop();
|
||||
}
|
||||
|
@ -51763,14 +51763,13 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|||
|
||||
var ProfileEdit = function ProfileEdit() {
|
||||
var history = (0,react_router__WEBPACK_IMPORTED_MODULE_6__.useHistory)();
|
||||
var father_id = localStorage.getItem('kiki_acc_id');
|
||||
|
||||
var _useState = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(localStorage.getItem('notice')),
|
||||
_useState2 = _slicedToArray(_useState, 2),
|
||||
notice = _useState2[0],
|
||||
setNotice = _useState2[1];
|
||||
|
||||
var father_id = document.getElementById('father_id').value;
|
||||
|
||||
var _useState3 = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(''),
|
||||
_useState4 = _slicedToArray(_useState3, 2),
|
||||
company = _useState4[0],
|
||||
|
@ -52129,6 +52128,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|||
|
||||
var Profile = function Profile(props) {
|
||||
var history = (0,react_router_dom__WEBPACK_IMPORTED_MODULE_6__.useHistory)();
|
||||
var father_id = localStorage.getItem('kiki_acc_id');
|
||||
|
||||
var _useState = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(localStorage.getItem('notice')),
|
||||
_useState2 = _slicedToArray(_useState, 2),
|
||||
|
@ -52182,7 +52182,6 @@ var Profile = function Profile(props) {
|
|||
submit_image = _useState18[0],
|
||||
setSubmitImage = _useState18[1];
|
||||
|
||||
var father_id = document.getElementById('father_id').value;
|
||||
var isMountedRef = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(true);
|
||||
(0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default().mark(function _callee() {
|
||||
return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default().wrap(function _callee$(_context) {
|
||||
|
@ -52523,14 +52522,13 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|||
|
||||
var ProfilePasswordEdit = function ProfilePasswordEdit() {
|
||||
var history = (0,react_router_dom__WEBPACK_IMPORTED_MODULE_5__.useHistory)();
|
||||
var father_id = localStorage.getItem('kiki_acc_id');
|
||||
|
||||
var _useState = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(localStorage.getItem('notice')),
|
||||
_useState2 = _slicedToArray(_useState, 2),
|
||||
notice = _useState2[0],
|
||||
setNotice = _useState2[1];
|
||||
|
||||
var father_id = document.getElementById('father_id').value;
|
||||
|
||||
var _useState3 = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(''),
|
||||
_useState4 = _slicedToArray(_useState3, 2),
|
||||
password = _useState4[0],
|
||||
|
@ -52767,13 +52765,13 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|||
|
||||
|
||||
var ProfileWithdrawal = function ProfileWithdrawal() {
|
||||
var father_id = localStorage.getItem('kiki_acc_id');
|
||||
|
||||
var _useState = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(localStorage.getItem('notice')),
|
||||
_useState2 = _slicedToArray(_useState, 2),
|
||||
notice = _useState2[0],
|
||||
setNotice = _useState2[1];
|
||||
|
||||
var father_id = document.getElementById("father_id").value;
|
||||
|
||||
var _useState3 = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(false),
|
||||
_useState4 = _slicedToArray(_useState3, 2),
|
||||
submit = _useState4[0],
|
||||
|
@ -52950,6 +52948,8 @@ var INFINITE = 10;
|
|||
var SCROLL_DELAY_TIME = 1500;
|
||||
|
||||
var Search = function Search(props) {
|
||||
var father_id = localStorage.getItem('kiki_acc_id');
|
||||
|
||||
var _useState = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(localStorage.getItem('notice')),
|
||||
_useState2 = _slicedToArray(_useState, 2),
|
||||
notice = _useState2[0],
|
||||
|
@ -53021,7 +53021,6 @@ var Search = function Search(props) {
|
|||
|
||||
var handleSearch = /*#__PURE__*/function () {
|
||||
var _ref = _asyncToGenerator( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default().mark(function _callee(e) {
|
||||
var father_id;
|
||||
return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default().wrap(function _callee$(_context) {
|
||||
while (1) {
|
||||
switch (_context.prev = _context.next) {
|
||||
|
@ -53040,8 +53039,7 @@ var Search = function Search(props) {
|
|||
setLoaded1(false);
|
||||
setLoaded2(false);
|
||||
setInitPage(false);
|
||||
father_id = document.getElementById('father_id').value;
|
||||
_context.next = 10;
|
||||
_context.next = 9;
|
||||
return axios.get('/api/fathers/meetings/searchOfIncompleteOfFather', {
|
||||
params: {
|
||||
father_id: father_id,
|
||||
|
@ -53076,8 +53074,8 @@ var Search = function Search(props) {
|
|||
}
|
||||
});
|
||||
|
||||
case 10:
|
||||
_context.next = 12;
|
||||
case 9:
|
||||
_context.next = 11;
|
||||
return axios.get('/api/fathers/meetings/searchOfCompleteOfFather', {
|
||||
params: {
|
||||
father_id: father_id,
|
||||
|
@ -53112,7 +53110,7 @@ var Search = function Search(props) {
|
|||
}
|
||||
});
|
||||
|
||||
case 12:
|
||||
case 11:
|
||||
case "end":
|
||||
return _context.stop();
|
||||
}
|
||||
|
|
|
@ -19,7 +19,7 @@ const ChildDetail = (props) => {
|
|||
const [_404error, set404Error] = useState('');
|
||||
const [_success, setSuccess] = useState(props.history.location.state);
|
||||
|
||||
const father_id = document.getElementById('father_id').value;
|
||||
const father_id = localStorage.getItem('kiki_acc_id');
|
||||
const child_id = props.match.params.child_id;
|
||||
const isMountedRef = useRef(true);
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@ const ChildEdit = (props) => {
|
|||
const [submit, setSubmit] = useState(false);
|
||||
const [loaded, setLoaded] = useState(false);
|
||||
|
||||
const father_id = document.getElementById('father_id').value;
|
||||
const father_id = localStorage.getItem('kiki_acc_id');
|
||||
const child_id = props.match.params.child_id;
|
||||
|
||||
const isMountedRef = useRef(true);
|
||||
|
|
|
@ -13,6 +13,8 @@ const Child = (props) => {
|
|||
|
||||
const history = useHistory();
|
||||
const [notice, setNotice] = useState(localStorage.getItem('notice'));
|
||||
const father_id = localStorage.getItem('kiki_acc_id');
|
||||
|
||||
const [children_list, setChildrenList] = useState([]);
|
||||
const [fetch_children_list, setFetchChildrenList] = useState([]);
|
||||
const [loaded, setLoaded] = useState(false);
|
||||
|
@ -24,7 +26,7 @@ const Child = (props) => {
|
|||
useEffect( async () => {
|
||||
isMountedRef.current = false;
|
||||
setLoaded(false);
|
||||
let father_id = document.getElementById('father_id').value;
|
||||
|
||||
await axios.get('/api/fathers/children/listOfFather', {params: {father_id: father_id}})
|
||||
.then(response => {
|
||||
setLoaded(true);
|
||||
|
|
|
@ -15,6 +15,8 @@ const SCROLL_DELAY_TIME = 1500;
|
|||
const Favorite = (props) => {
|
||||
|
||||
const [notice, setNotice] = useState(localStorage.getItem('notice'));
|
||||
const father_id = localStorage.getItem('kiki_acc_id');
|
||||
|
||||
const [tab_status, setTabStatus] = useState(false);
|
||||
const [loaded, setLoaded] = useState(false);
|
||||
const [loaded1, setLoaded1] = useState(false);
|
||||
|
@ -36,7 +38,6 @@ const Favorite = (props) => {
|
|||
useEffect(async () => {
|
||||
isMountedRef.current = false;
|
||||
setLoaded(false);
|
||||
let father_id = document.getElementById('father_id').value;
|
||||
|
||||
await axios.get('/api/fathers/meetings/listOfNonFavoriteOfFather', {params:{father_id: father_id}})
|
||||
.then(response => {
|
||||
|
|
|
@ -13,7 +13,7 @@ import UploadingProgress from '../../component/modal_uploading';
|
|||
const MeetingAdd = (props) => {
|
||||
|
||||
const history = useHistory();
|
||||
const father_id = document.getElementById('father_id').value;
|
||||
const father_id = localStorage.getItem('kiki_acc_id');
|
||||
const [notice, setNotice] = useState(localStorage.getItem('notice'));
|
||||
|
||||
const [title, setTitle] = useState('');
|
||||
|
|
|
@ -14,10 +14,12 @@ import PageLoader from '../../component/page_loader';
|
|||
const MeetingDetail = (props) => {
|
||||
|
||||
const history = useHistory();
|
||||
const [notice, setNotice] = useState(localStorage.getItem('notice'));
|
||||
const father_id = localStorage.getItem('kiki_acc_id');
|
||||
|
||||
const [loaded, setLoaded] = useState(false);
|
||||
const [submit_delete, setSubmitDelete] = useState(false);
|
||||
const [submit_notify, setSubmitNotify] = useState(false);
|
||||
const [notice, setNotice] = useState(localStorage.getItem('notice'));
|
||||
const [_success, setSuccess] = useState(props.history.location.state);
|
||||
const [_400error, set400Error] = useState('');
|
||||
const [_404error, set404Error] = useState('');
|
||||
|
@ -34,8 +36,8 @@ const MeetingDetail = (props) => {
|
|||
|
||||
useEffect( async () => {
|
||||
isMountedRef.current = false;
|
||||
let father_id = document.getElementById('father_id').value;
|
||||
setLoaded(false);
|
||||
|
||||
await axios.get(`/api/fathers/meetings/detail/${props.match.params?.meeting_id}`, {params: { father_id: father_id}})
|
||||
.then((response) => {
|
||||
setLoaded(true);
|
||||
|
|
|
@ -17,7 +17,7 @@ import UploadingProgress from '../../component/modal_uploading';
|
|||
const MeetingEdit = (props) => {
|
||||
|
||||
const history = useHistory();
|
||||
const father_id = document.getElementById('father_id').value;
|
||||
const father_id = localStorage.getItem('kiki_acc_id');
|
||||
const meeting_id = props.match.params.meeting_id;
|
||||
const [notice, setNotice] = useState(localStorage.getItem('notice'));
|
||||
|
||||
|
|
|
@ -14,6 +14,8 @@ const SCROLL_DELAY_TIME = 1500;
|
|||
const Meeting = (props) => {
|
||||
|
||||
const [notice, setNotice] = useState(localStorage.getItem('notice'));
|
||||
const father_id = localStorage.getItem('kiki_acc_id');
|
||||
|
||||
const [tab_status, setTabStatus] = useState(false);
|
||||
const [loaded, setLoaded] = useState(false);
|
||||
const [loaded1, setLoaded1] = useState(false);
|
||||
|
@ -47,7 +49,6 @@ const Meeting = (props) => {
|
|||
useEffect( async () => {
|
||||
isMountedRef.current = false;
|
||||
setLoaded(false);
|
||||
let father_id = document.getElementById('father_id').value;
|
||||
|
||||
await axios.get('/api/fathers/meetings/listOfIncompleteOfFather', {params:{father_id: father_id}})
|
||||
.then(response => {
|
||||
|
|
|
@ -8,8 +8,8 @@ import { useHistory } from 'react-router';
|
|||
const ProfileEdit = () => {
|
||||
|
||||
const history = useHistory();
|
||||
const father_id = localStorage.getItem('kiki_acc_id');
|
||||
const [notice, setNotice] = useState(localStorage.getItem('notice'));
|
||||
const father_id = document.getElementById('father_id').value;
|
||||
|
||||
const [company, setCompany] = useState('');
|
||||
const [email, setEmail] = useState('');
|
||||
|
|
|
@ -9,6 +9,7 @@ import Notification from '../../component/notification';
|
|||
|
||||
const Profile = (props) => {
|
||||
const history = useHistory();
|
||||
const father_id = localStorage.getItem('kiki_acc_id');
|
||||
const [notice, setNotice] = useState(localStorage.getItem('notice'));
|
||||
|
||||
const [image, setImage] = useState('');
|
||||
|
@ -20,7 +21,6 @@ const Profile = (props) => {
|
|||
const [_success, setSuccess] = useState(props.history.location.state);
|
||||
const [submit_image, setSubmitImage] = useState(false);
|
||||
|
||||
const father_id = document.getElementById('father_id').value;
|
||||
const isMountedRef = useRef(true);
|
||||
|
||||
useEffect( async () => {
|
||||
|
|
|
@ -7,8 +7,9 @@ import Alert from '../../component/alert';
|
|||
|
||||
const ProfilePasswordEdit = () => {
|
||||
const history = useHistory();
|
||||
const father_id = localStorage.getItem('kiki_acc_id');
|
||||
const [notice, setNotice] = useState(localStorage.getItem('notice'));
|
||||
const father_id = document.getElementById('father_id').value;
|
||||
|
||||
const [password, setPassword] = useState('');
|
||||
const [password_confirmation, setConfirmPassword] = useState('');
|
||||
|
||||
|
|
|
@ -4,25 +4,27 @@ import Notification from '../../component/notification';
|
|||
import Alert from '../../component/alert';
|
||||
|
||||
const ProfileWithdrawal = () => {
|
||||
const [notice, setNotice] = useState(localStorage.getItem('notice'));
|
||||
const father_id = document.getElementById("father_id").value;
|
||||
const [submit, setSubmit] = useState(false);
|
||||
const [_400error, set400Error] = useState('');
|
||||
|
||||
const handleSubmit = async (e) => {
|
||||
e.preventDefault();
|
||||
setSubmit(true);
|
||||
const father_id = localStorage.getItem('kiki_acc_id');
|
||||
const [notice, setNotice] = useState(localStorage.getItem('notice'));
|
||||
|
||||
await axios.delete('/api/fathers/withdrawal', {params:{father_id: father_id}})
|
||||
.then(response => {
|
||||
setSubmit(false);
|
||||
setNotice(response.data.notice);
|
||||
switch(response.data.status_code){
|
||||
case 200: window.location.href = "/p-account/withdrawal/complete"; break;
|
||||
case 400: set400Error("失敗しました。"); break;
|
||||
}
|
||||
})
|
||||
}
|
||||
const [submit, setSubmit] = useState(false);
|
||||
const [_400error, set400Error] = useState('');
|
||||
|
||||
const handleSubmit = async (e) => {
|
||||
e.preventDefault();
|
||||
setSubmit(true);
|
||||
|
||||
await axios.delete('/api/fathers/withdrawal', {params:{father_id: father_id}})
|
||||
.then(response => {
|
||||
setSubmit(false);
|
||||
setNotice(response.data.notice);
|
||||
switch(response.data.status_code){
|
||||
case 200: window.location.href = "/p-account/withdrawal/complete"; break;
|
||||
case 400: set400Error("失敗しました。"); break;
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
return (
|
||||
<div className="l-content">
|
||||
|
|
|
@ -14,7 +14,9 @@ const SCROLL_DELAY_TIME = 1500;
|
|||
|
||||
const Search = (props) => {
|
||||
|
||||
const father_id = localStorage.getItem('kiki_acc_id');
|
||||
const [notice, setNotice] = useState(localStorage.getItem('notice'));
|
||||
|
||||
const [keyword, setKeyword] = useState('');
|
||||
const [tab_status, setTabStatus] = useState(false);
|
||||
|
||||
|
@ -45,8 +47,6 @@ const Search = (props) => {
|
|||
setLoaded1(false);
|
||||
setLoaded2(false);
|
||||
setInitPage(false);
|
||||
|
||||
let father_id = document.getElementById('father_id').value;
|
||||
|
||||
await axios.get('/api/fathers/meetings/searchOfIncompleteOfFather', {params:{father_id: father_id, keyword: keyword,}})
|
||||
.then(response => {
|
||||
|
|
新しいイシューから参照