fixed
このコミットが含まれているのは:
コミット
4709bd971b
|
@ -31847,10 +31847,12 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|||
|
||||
|
||||
var ChildMeetingDetail = function ChildMeetingDetail() {
|
||||
var _JSON$parse;
|
||||
|
||||
var navigator = (0,react_router_dom__WEBPACK_IMPORTED_MODULE_10__.useNavigate)();
|
||||
var params = (0,react_router_dom__WEBPACK_IMPORTED_MODULE_10__.useParams)(); //meeting/detail/:meeting_id
|
||||
|
||||
var child_id = JSON.parse(localStorage.getItem('c-account_token')).id;
|
||||
var child_id = (_JSON$parse = JSON.parse(localStorage.getItem('c-account_token'))) === null || _JSON$parse === void 0 ? void 0 : _JSON$parse.id;
|
||||
|
||||
var _useState = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(-1),
|
||||
_useState2 = _slicedToArray(_useState, 2),
|
||||
|
@ -32197,7 +32199,9 @@ var INFINITE = 10;
|
|||
var SCROLL_DELAY_TIME = 1500;
|
||||
|
||||
var ChildMeetings = function ChildMeetings() {
|
||||
var child_id = JSON.parse(localStorage.getItem('c-account_token')).id;
|
||||
var _JSON$parse;
|
||||
|
||||
var child_id = (_JSON$parse = JSON.parse(localStorage.getItem('c-account_token'))) === null || _JSON$parse === void 0 ? void 0 : _JSON$parse.id;
|
||||
|
||||
var _useState = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(-1),
|
||||
_useState2 = _slicedToArray(_useState, 2),
|
||||
|
@ -32801,7 +32805,9 @@ var INFINITE = 10;
|
|||
var SCROLL_DELAY_TIME = 1500;
|
||||
|
||||
var ChildParents = function ChildParents() {
|
||||
var child_id = JSON.parse(localStorage.getItem('c-account_token')).id;
|
||||
var _JSON$parse;
|
||||
|
||||
var child_id = (_JSON$parse = JSON.parse(localStorage.getItem('c-account_token'))) === null || _JSON$parse === void 0 ? void 0 : _JSON$parse.id;
|
||||
|
||||
var _useState = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(-1),
|
||||
_useState2 = _slicedToArray(_useState, 2),
|
||||
|
@ -32993,8 +32999,10 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|||
|
||||
|
||||
var ChildProfileEdit = function ChildProfileEdit() {
|
||||
var _JSON$parse;
|
||||
|
||||
var navigator = (0,react_router_dom__WEBPACK_IMPORTED_MODULE_5__.useNavigate)();
|
||||
var child_id = JSON.parse(localStorage.getItem('c-account_token')).id;
|
||||
var child_id = (_JSON$parse = JSON.parse(localStorage.getItem('c-account_token'))) === null || _JSON$parse === void 0 ? void 0 : _JSON$parse.id;
|
||||
|
||||
var _useState = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(-1),
|
||||
_useState2 = _slicedToArray(_useState, 2),
|
||||
|
@ -33383,8 +33391,10 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|||
|
||||
|
||||
var ChildProfileDetail = function ChildProfileDetail() {
|
||||
var _JSON$parse;
|
||||
|
||||
var navigator = (0,react_router_dom__WEBPACK_IMPORTED_MODULE_5__.useNavigate)();
|
||||
var child_id = JSON.parse(localStorage.getItem('c-account_token')).id;
|
||||
var child_id = (_JSON$parse = JSON.parse(localStorage.getItem('c-account_token'))) === null || _JSON$parse === void 0 ? void 0 : _JSON$parse.id;
|
||||
|
||||
var _useState = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(-1),
|
||||
_useState2 = _slicedToArray(_useState, 2),
|
||||
|
@ -33769,8 +33779,10 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|||
|
||||
|
||||
var ChildProfilePasswordEdit = function ChildProfilePasswordEdit() {
|
||||
var _JSON$parse;
|
||||
|
||||
var navigator = (0,react_router_dom__WEBPACK_IMPORTED_MODULE_4__.useNavigate)();
|
||||
var child_id = JSON.parse(localStorage.getItem('c-account_token')).id;
|
||||
var child_id = (_JSON$parse = JSON.parse(localStorage.getItem('c-account_token'))) === null || _JSON$parse === void 0 ? void 0 : _JSON$parse.id;
|
||||
|
||||
var _useState = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(-1),
|
||||
_useState2 = _slicedToArray(_useState, 2),
|
||||
|
@ -33991,7 +34003,9 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|||
|
||||
|
||||
var ChildProfileWithdrawal = function ChildProfileWithdrawal() {
|
||||
var child_id = JSON.parse(localStorage.getItem('c-account_token')).id;
|
||||
var _JSON$parse;
|
||||
|
||||
var child_id = (_JSON$parse = JSON.parse(localStorage.getItem('c-account_token'))) === null || _JSON$parse === void 0 ? void 0 : _JSON$parse.id;
|
||||
|
||||
var _useState = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(-1),
|
||||
_useState2 = _slicedToArray(_useState, 2),
|
||||
|
@ -34149,6 +34163,8 @@ var INFINITE = 10;
|
|||
var SCROLL_DELAY_TIME = 1500;
|
||||
|
||||
var ChildSearch = function ChildSearch() {
|
||||
var _JSON$parse;
|
||||
|
||||
var _useState = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(''),
|
||||
_useState2 = _slicedToArray(_useState, 2),
|
||||
keyword = _useState2[0],
|
||||
|
@ -34199,7 +34215,7 @@ var ChildSearch = function ChildSearch() {
|
|||
initPage = _useState20[0],
|
||||
setInitPage = _useState20[1];
|
||||
|
||||
var child_id = JSON.parse(localStorage.getItem('c-account_token')).id;
|
||||
var child_id = (_JSON$parse = JSON.parse(localStorage.getItem('c-account_token'))) === null || _JSON$parse === void 0 ? void 0 : _JSON$parse.id;
|
||||
|
||||
var _useState21 = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(-1),
|
||||
_useState22 = _slicedToArray(_useState21, 2),
|
||||
|
@ -38288,12 +38304,14 @@ var LineModal = function LineModal(_ref) {
|
|||
};
|
||||
|
||||
var ParentChildAdd = function ParentChildAdd() {
|
||||
var _JSON$parse;
|
||||
|
||||
var _useState5 = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(-1),
|
||||
_useState6 = _slicedToArray(_useState5, 2),
|
||||
notice = _useState6[0],
|
||||
setNotice = _useState6[1];
|
||||
|
||||
var father_id = JSON.parse(localStorage.getItem('p-account_token')).id;
|
||||
var father_id = (_JSON$parse = JSON.parse(localStorage.getItem('p-account_token'))) === null || _JSON$parse === void 0 ? void 0 : _JSON$parse.id;
|
||||
|
||||
var _useState7 = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(true),
|
||||
_useState8 = _slicedToArray(_useState7, 2),
|
||||
|
@ -38585,7 +38603,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|||
|
||||
|
||||
var ParentChildDetail = function ParentChildDetail() {
|
||||
var _child$father_relatio;
|
||||
var _JSON$parse, _child$father_relatio;
|
||||
|
||||
var navigator = (0,react_router_dom__WEBPACK_IMPORTED_MODULE_7__.useNavigate)();
|
||||
var params = (0,react_router_dom__WEBPACK_IMPORTED_MODULE_7__.useParams)();
|
||||
|
@ -38630,7 +38648,7 @@ var ParentChildDetail = function ParentChildDetail() {
|
|||
_success = _useState16[0],
|
||||
setSuccess = _useState16[1];
|
||||
|
||||
var father_id = JSON.parse(localStorage.getItem('p-account_token')).id;
|
||||
var father_id = (_JSON$parse = JSON.parse(localStorage.getItem('p-account_token'))) === null || _JSON$parse === void 0 ? void 0 : _JSON$parse.id;
|
||||
var child_id = params === null || params === void 0 ? void 0 : params.child_id;
|
||||
var isMountedRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(true);
|
||||
(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () {
|
||||
|
@ -38872,6 +38890,8 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|||
|
||||
|
||||
var ParentChildEdit = function ParentChildEdit() {
|
||||
var _JSON$parse;
|
||||
|
||||
var navigator = (0,react_router_dom__WEBPACK_IMPORTED_MODULE_9__.useNavigate)();
|
||||
var params = (0,react_router_dom__WEBPACK_IMPORTED_MODULE_9__.useParams)();
|
||||
|
||||
|
@ -38917,7 +38937,7 @@ var ParentChildEdit = function ParentChildEdit() {
|
|||
loaded = _useState16[0],
|
||||
setLoaded = _useState16[1];
|
||||
|
||||
var father_id = JSON.parse(localStorage.getItem('p-account_token')).id;
|
||||
var father_id = (_JSON$parse = JSON.parse(localStorage.getItem('p-account_token'))) === null || _JSON$parse === void 0 ? void 0 : _JSON$parse.id;
|
||||
var child_id = params === null || params === void 0 ? void 0 : params.child_id;
|
||||
var isMountedRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(true);
|
||||
(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () {
|
||||
|
@ -39131,12 +39151,14 @@ var INFINITE = 10;
|
|||
var SCROLL_DELAY_TIME = 1500;
|
||||
|
||||
var ParentChilds = function ParentChilds() {
|
||||
var _JSON$parse;
|
||||
|
||||
var _useState = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(-1),
|
||||
_useState2 = _slicedToArray(_useState, 2),
|
||||
notice = _useState2[0],
|
||||
setNotice = _useState2[1];
|
||||
|
||||
var father_id = JSON.parse(localStorage.getItem('p-account_token')).id;
|
||||
var father_id = (_JSON$parse = JSON.parse(localStorage.getItem('p-account_token'))) === null || _JSON$parse === void 0 ? void 0 : _JSON$parse.id;
|
||||
|
||||
var _useState3 = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)([]),
|
||||
_useState4 = _slicedToArray(_useState3, 2),
|
||||
|
@ -39358,12 +39380,14 @@ var INFINITE = 10;
|
|||
var SCROLL_DELAY_TIME = 1500;
|
||||
|
||||
var ParentFavorite = function ParentFavorite() {
|
||||
var _JSON$parse;
|
||||
|
||||
var _useState = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(-1),
|
||||
_useState2 = _slicedToArray(_useState, 2),
|
||||
notice = _useState2[0],
|
||||
setNotice = _useState2[1];
|
||||
|
||||
var father_id = JSON.parse(localStorage.getItem('p-account_token')).id;
|
||||
var father_id = (_JSON$parse = JSON.parse(localStorage.getItem('p-account_token'))) === null || _JSON$parse === void 0 ? void 0 : _JSON$parse.id;
|
||||
|
||||
var _useState3 = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(false),
|
||||
_useState4 = _slicedToArray(_useState3, 2),
|
||||
|
@ -39890,11 +39914,11 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|||
|
||||
|
||||
var ParentMeetingAdd = function ParentMeetingAdd() {
|
||||
var _ref;
|
||||
var _JSON$parse, _ref;
|
||||
|
||||
var navigator = (0,react_router_dom__WEBPACK_IMPORTED_MODULE_7__.useNavigate)();
|
||||
var location = (0,react_router_dom__WEBPACK_IMPORTED_MODULE_7__.useLocation)();
|
||||
var father_id = JSON.parse(localStorage.getItem('p-account_token')).id;
|
||||
var father_id = (_JSON$parse = JSON.parse(localStorage.getItem('p-account_token'))) === null || _JSON$parse === void 0 ? void 0 : _JSON$parse.id;
|
||||
|
||||
var _useState = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(-1),
|
||||
_useState2 = _slicedToArray(_useState, 2),
|
||||
|
@ -40514,7 +40538,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|||
|
||||
|
||||
var ParentMeetingDetail = function ParentMeetingDetail() {
|
||||
var _meeting$approval;
|
||||
var _JSON$parse, _meeting$approval;
|
||||
|
||||
var navigator = (0,react_router_dom__WEBPACK_IMPORTED_MODULE_12__.useNavigate)();
|
||||
var params = (0,react_router_dom__WEBPACK_IMPORTED_MODULE_12__.useParams)();
|
||||
|
@ -40524,7 +40548,7 @@ var ParentMeetingDetail = function ParentMeetingDetail() {
|
|||
notice = _useState2[0],
|
||||
setNotice = _useState2[1];
|
||||
|
||||
var father_id = JSON.parse(localStorage.getItem('p-account_token')).id;
|
||||
var father_id = (_JSON$parse = JSON.parse(localStorage.getItem('p-account_token'))) === null || _JSON$parse === void 0 ? void 0 : _JSON$parse.id;
|
||||
|
||||
var _useState3 = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(false),
|
||||
_useState4 = _slicedToArray(_useState3, 2),
|
||||
|
@ -41083,11 +41107,11 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|||
|
||||
|
||||
var ParentMeetingEdit = function ParentMeetingEdit() {
|
||||
var _ref;
|
||||
var _JSON$parse, _ref;
|
||||
|
||||
var navigator = (0,react_router_dom__WEBPACK_IMPORTED_MODULE_7__.useNavigate)();
|
||||
var params = (0,react_router_dom__WEBPACK_IMPORTED_MODULE_7__.useParams)();
|
||||
var father_id = JSON.parse(localStorage.getItem('p-account_token')).id;
|
||||
var father_id = (_JSON$parse = JSON.parse(localStorage.getItem('p-account_token'))) === null || _JSON$parse === void 0 ? void 0 : _JSON$parse.id;
|
||||
var meeting_id = params === null || params === void 0 ? void 0 : params.meeting_id;
|
||||
|
||||
var _useState = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(-1),
|
||||
|
@ -41789,12 +41813,14 @@ var INFINITE = 10;
|
|||
var SCROLL_DELAY_TIME = 1500;
|
||||
|
||||
var ParentMeetings = function ParentMeetings() {
|
||||
var _JSON$parse;
|
||||
|
||||
var _useState = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(-1),
|
||||
_useState2 = _slicedToArray(_useState, 2),
|
||||
notice = _useState2[0],
|
||||
setNotice = _useState2[1];
|
||||
|
||||
var father_id = JSON.parse(localStorage.getItem('p-account_token')).id;
|
||||
var father_id = (_JSON$parse = JSON.parse(localStorage.getItem('p-account_token'))) === null || _JSON$parse === void 0 ? void 0 : _JSON$parse.id;
|
||||
|
||||
var _useState3 = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(false),
|
||||
_useState4 = _slicedToArray(_useState3, 2),
|
||||
|
@ -42307,8 +42333,10 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|||
|
||||
|
||||
var ParentProfileEdit = function ParentProfileEdit() {
|
||||
var _JSON$parse;
|
||||
|
||||
var navigator = (0,react_router_dom__WEBPACK_IMPORTED_MODULE_5__.useNavigate)();
|
||||
var father_id = JSON.parse(localStorage.getItem('p-account_token')).id;
|
||||
var father_id = (_JSON$parse = JSON.parse(localStorage.getItem('p-account_token'))) === null || _JSON$parse === void 0 ? void 0 : _JSON$parse.id;
|
||||
|
||||
var _useState = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(-1),
|
||||
_useState2 = _slicedToArray(_useState, 2),
|
||||
|
@ -42638,8 +42666,10 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|||
|
||||
|
||||
var ParentProfileDetail = function ParentProfileDetail() {
|
||||
var _JSON$parse;
|
||||
|
||||
var navigator = (0,react_router_dom__WEBPACK_IMPORTED_MODULE_5__.useNavigate)();
|
||||
var father_id = JSON.parse(localStorage.getItem('p-account_token')).id;
|
||||
var father_id = (_JSON$parse = JSON.parse(localStorage.getItem('p-account_token'))) === null || _JSON$parse === void 0 ? void 0 : _JSON$parse.id;
|
||||
|
||||
var _useState = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(-1),
|
||||
_useState2 = _slicedToArray(_useState, 2),
|
||||
|
@ -43010,8 +43040,10 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|||
|
||||
|
||||
var ParentProfilePasswordEdit = function ParentProfilePasswordEdit() {
|
||||
var _JSON$parse;
|
||||
|
||||
var navigator = (0,react_router_dom__WEBPACK_IMPORTED_MODULE_4__.useNavigate)();
|
||||
var father_id = JSON.parse(localStorage.getItem('p-account_token')).id;
|
||||
var father_id = (_JSON$parse = JSON.parse(localStorage.getItem('p-account_token'))) === null || _JSON$parse === void 0 ? void 0 : _JSON$parse.id;
|
||||
|
||||
var _useState = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(-1),
|
||||
_useState2 = _slicedToArray(_useState, 2),
|
||||
|
@ -43235,7 +43267,9 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|||
|
||||
|
||||
var ParentProfileWithdrawal = function ParentProfileWithdrawal() {
|
||||
var father_id = JSON.parse(localStorage.getItem('p-account_token')).id;
|
||||
var _JSON$parse;
|
||||
|
||||
var father_id = (_JSON$parse = JSON.parse(localStorage.getItem('p-account_token'))) === null || _JSON$parse === void 0 ? void 0 : _JSON$parse.id;
|
||||
|
||||
var _useState = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(-1),
|
||||
_useState2 = _slicedToArray(_useState, 2),
|
||||
|
@ -43401,7 +43435,9 @@ var INFINITE = 10;
|
|||
var SCROLL_DELAY_TIME = 1500;
|
||||
|
||||
var ParentSearch = function ParentSearch() {
|
||||
var father_id = JSON.parse(localStorage.getItem('p-account_token')).id;
|
||||
var _JSON$parse;
|
||||
|
||||
var father_id = (_JSON$parse = JSON.parse(localStorage.getItem('p-account_token'))) === null || _JSON$parse === void 0 ? void 0 : _JSON$parse.id;
|
||||
|
||||
var _useState = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(-1),
|
||||
_useState2 = _slicedToArray(_useState, 2),
|
||||
|
|
|
@ -15,7 +15,7 @@ const ChildMeetingDetail = () => {
|
|||
const navigator = useNavigate();
|
||||
const params = useParams(); //meeting/detail/:meeting_id
|
||||
|
||||
const child_id = JSON.parse(localStorage.getItem('c-account_token')).id;
|
||||
const child_id = JSON.parse(localStorage.getItem('c-account_token'))?.id;
|
||||
const [notice, setNotice] = useState(-1);
|
||||
|
||||
const [loaded, setLoaded] = useState(false);
|
||||
|
|
|
@ -12,7 +12,7 @@ const SCROLL_DELAY_TIME = 1500;
|
|||
|
||||
const ChildMeetings = () => {
|
||||
|
||||
const child_id = JSON.parse(localStorage.getItem('c-account_token')).id;
|
||||
const child_id = JSON.parse(localStorage.getItem('c-account_token'))?.id;
|
||||
const [notice, setNotice] = useState(-1);
|
||||
const [tab_status, setTabStatus] = useState(false);
|
||||
const [loaded, setLoaded] = useState(false);
|
||||
|
|
|
@ -11,7 +11,7 @@ const SCROLL_DELAY_TIME = 1500;
|
|||
|
||||
const ChildParents = () => {
|
||||
|
||||
const child_id = JSON.parse(localStorage.getItem('c-account_token')).id;
|
||||
const child_id = JSON.parse(localStorage.getItem('c-account_token'))?.id;
|
||||
const [notice, setNotice] = useState(-1);
|
||||
|
||||
const [parent_list, setParentList] = useState([]);
|
||||
|
|
|
@ -11,7 +11,7 @@ const ChildProfileEdit = () => {
|
|||
|
||||
const navigator = useNavigate();
|
||||
|
||||
const child_id = JSON.parse(localStorage.getItem('c-account_token')).id;
|
||||
const child_id = JSON.parse(localStorage.getItem('c-account_token'))?.id;
|
||||
const [notice, setNotice] = useState(-1);
|
||||
|
||||
const [first_name, setFirstName] = useState('');
|
||||
|
|
|
@ -12,7 +12,7 @@ const ChildProfileDetail = () => {
|
|||
|
||||
const navigator = useNavigate();
|
||||
|
||||
const child_id = JSON.parse(localStorage.getItem('c-account_token')).id;
|
||||
const child_id = JSON.parse(localStorage.getItem('c-account_token'))?.id;
|
||||
const [notice, setNotice] = useState(-1);
|
||||
|
||||
const [image, setImage] = useState('');
|
||||
|
|
|
@ -10,7 +10,7 @@ const ChildProfilePasswordEdit = () => {
|
|||
|
||||
const navigator = useNavigate();
|
||||
|
||||
const child_id = JSON.parse(localStorage.getItem('c-account_token')).id;
|
||||
const child_id = JSON.parse(localStorage.getItem('c-account_token'))?.id;
|
||||
const [notice, setNotice] = useState(-1);
|
||||
|
||||
const [password, setPassword] = useState('');
|
||||
|
|
|
@ -6,7 +6,7 @@ import Alert from '../../component/alert';
|
|||
|
||||
const ChildProfileWithdrawal = () => {
|
||||
|
||||
const child_id = JSON.parse(localStorage.getItem('c-account_token')).id;
|
||||
const child_id = JSON.parse(localStorage.getItem('c-account_token'))?.id;
|
||||
const [notice, setNotice] = useState(-1);
|
||||
const [submit, setSubmit] = useState(false);
|
||||
const [_400error, set400Error] = useState('');
|
||||
|
|
|
@ -26,7 +26,7 @@ const ChildSearch = () => {
|
|||
const [loaded, setLoaded] = useState(true);
|
||||
const [initPage, setInitPage] = useState(true);
|
||||
|
||||
const child_id = JSON.parse(localStorage.getItem('c-account_token')).id;
|
||||
const child_id = JSON.parse(localStorage.getItem('c-account_token'))?.id;
|
||||
const [notice, setNotice] = useState(-1);
|
||||
|
||||
|
||||
|
|
|
@ -80,7 +80,7 @@ const LineModal = ({ show, handleClose }) => {
|
|||
|
||||
const ParentChildAdd = () => {
|
||||
const [notice, setNotice] = useState(-1);
|
||||
const father_id = JSON.parse(localStorage.getItem('p-account_token')).id;
|
||||
const father_id = JSON.parse(localStorage.getItem('p-account_token'))?.id;
|
||||
|
||||
const [loaded, setLoaded] = useState(true);
|
||||
|
||||
|
|
|
@ -21,7 +21,7 @@ const ParentChildDetail = () => {
|
|||
const [_404error, set404Error] = useState('');
|
||||
const [_success, setSuccess] = useState('');
|
||||
|
||||
const father_id = JSON.parse(localStorage.getItem('p-account_token')).id;
|
||||
const father_id = JSON.parse(localStorage.getItem('p-account_token'))?.id;
|
||||
const child_id = params?.child_id;
|
||||
const isMountedRef = useRef(true);
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@ const ParentChildEdit = () => {
|
|||
const [submit, setSubmit] = useState(false);
|
||||
const [loaded, setLoaded] = useState(false);
|
||||
|
||||
const father_id = JSON.parse(localStorage.getItem('p-account_token')).id;
|
||||
const father_id = JSON.parse(localStorage.getItem('p-account_token'))?.id;
|
||||
const child_id = params?.child_id;
|
||||
|
||||
const isMountedRef = useRef(true);
|
||||
|
|
|
@ -12,7 +12,7 @@ const SCROLL_DELAY_TIME = 1500;
|
|||
const ParentChilds = () => {
|
||||
|
||||
const [notice, setNotice] = useState(-1);
|
||||
const father_id = JSON.parse(localStorage.getItem('p-account_token')).id;
|
||||
const father_id = JSON.parse(localStorage.getItem('p-account_token'))?.id;
|
||||
|
||||
const [children_list, setChildrenList] = useState([]);
|
||||
const [fetch_children_list, setFetchChildrenList] = useState([]);
|
||||
|
|
|
@ -15,7 +15,7 @@ const SCROLL_DELAY_TIME = 1500;
|
|||
const ParentFavorite = () => {
|
||||
|
||||
const [notice, setNotice] = useState(-1);
|
||||
const father_id = JSON.parse(localStorage.getItem('p-account_token')).id;
|
||||
const father_id = JSON.parse(localStorage.getItem('p-account_token'))?.id;
|
||||
|
||||
const [tab_status, setTabStatus] = useState(false);
|
||||
const [loaded, setLoaded] = useState(false);
|
||||
|
|
|
@ -15,7 +15,7 @@ const ParentMeetingAdd = () => {
|
|||
const navigator = useNavigate();
|
||||
const location = useLocation();
|
||||
|
||||
const father_id = JSON.parse(localStorage.getItem('p-account_token')).id;
|
||||
const father_id = JSON.parse(localStorage.getItem('p-account_token'))?.id;
|
||||
|
||||
const [notice, setNotice] = useState(-1);
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@ const ParentMeetingDetail = () => {
|
|||
const params = useParams();
|
||||
|
||||
const [notice, setNotice] = useState(-1);
|
||||
const father_id = JSON.parse(localStorage.getItem('p-account_token')).id;
|
||||
const father_id = JSON.parse(localStorage.getItem('p-account_token'))?.id;
|
||||
|
||||
const [loaded, setLoaded] = useState(false);
|
||||
const [loaded_children, setLoadedChildren] = useState(false);
|
||||
|
|
|
@ -18,7 +18,7 @@ const ParentMeetingEdit = () => {
|
|||
const navigator = useNavigate();
|
||||
const params = useParams();
|
||||
|
||||
const father_id = JSON.parse(localStorage.getItem('p-account_token')).id;
|
||||
const father_id = JSON.parse(localStorage.getItem('p-account_token'))?.id;
|
||||
const meeting_id = params?.meeting_id;
|
||||
const [notice, setNotice] = useState(-1);
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@ const SCROLL_DELAY_TIME = 1500;
|
|||
const ParentMeetings = () => {
|
||||
|
||||
const [notice, setNotice] = useState(-1);
|
||||
const father_id = JSON.parse(localStorage.getItem('p-account_token')).id;
|
||||
const father_id = JSON.parse(localStorage.getItem('p-account_token'))?.id;
|
||||
|
||||
const [tab_status, setTabStatus] = useState(false);
|
||||
const [loaded, setLoaded] = useState(false);
|
||||
|
|
|
@ -9,7 +9,7 @@ const ParentProfileEdit = () => {
|
|||
|
||||
const navigator = useNavigate();
|
||||
|
||||
const father_id = JSON.parse(localStorage.getItem('p-account_token')).id;
|
||||
const father_id = JSON.parse(localStorage.getItem('p-account_token'))?.id;
|
||||
const [notice, setNotice] = useState(-1);
|
||||
|
||||
const [company, setCompany] = useState('');
|
||||
|
|
|
@ -11,7 +11,7 @@ const ParentProfileDetail = () => {
|
|||
|
||||
const navigator = useNavigate();
|
||||
|
||||
const father_id = JSON.parse(localStorage.getItem('p-account_token')).id;
|
||||
const father_id = JSON.parse(localStorage.getItem('p-account_token'))?.id;
|
||||
const [notice, setNotice] = useState(-1);
|
||||
|
||||
const [image, setImage] = useState('');
|
||||
|
|
|
@ -9,7 +9,7 @@ const ParentProfilePasswordEdit = () => {
|
|||
|
||||
const navigator = useNavigate();
|
||||
|
||||
const father_id = JSON.parse(localStorage.getItem('p-account_token')).id;
|
||||
const father_id = JSON.parse(localStorage.getItem('p-account_token'))?.id;
|
||||
const [notice, setNotice] = useState(-1);
|
||||
|
||||
const [password, setPassword] = useState('');
|
||||
|
|
|
@ -5,7 +5,7 @@ import Alert from '../../component/alert';
|
|||
|
||||
const ParentProfileWithdrawal = () => {
|
||||
|
||||
const father_id = JSON.parse(localStorage.getItem('p-account_token')).id;
|
||||
const father_id = JSON.parse(localStorage.getItem('p-account_token'))?.id;
|
||||
const [notice, setNotice] = useState(-1);
|
||||
|
||||
const [submit, setSubmit] = useState(false);
|
||||
|
|
|
@ -14,7 +14,7 @@ const SCROLL_DELAY_TIME = 1500;
|
|||
|
||||
const ParentSearch = () => {
|
||||
|
||||
const father_id = JSON.parse(localStorage.getItem('p-account_token')).id;
|
||||
const father_id = JSON.parse(localStorage.getItem('p-account_token'))?.id;
|
||||
const [notice, setNotice] = useState(-1);
|
||||
|
||||
const [keyword, setKeyword] = useState('');
|
||||
|
|
新しいイシューから参照