@nakamura-123/pages 0.1.10 → 0.1.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/component/Coin/CoinCheck.d.ts +1 -1
- package/dist/component/Coin/CoinFnc.d.ts +1 -1
- package/dist/component/Result/CharaCard.js +15 -4
- package/dist/functions/oldStorageFnc.d.ts +1 -0
- package/dist/functions/oldStorageFnc.js +15 -4
- package/dist/functions/questionFilter.d.ts +5 -3
- package/dist/page/BootPage.js +3 -3
- package/dist/page/GetBadgePage.js +1 -1
- package/dist/page/HomePage.d.ts +1 -1
- package/dist/page/HomePage.js +54 -6
- package/dist/page/ReportPage.js +2 -4
- package/dist/page/SettingPage.js +2 -0
- package/dist/quiz/explain/ExplainLogic.js +1 -1
- package/dist/quiz/save/QuizSaveData.js +10 -10
- package/dist/quiz/setting/ReturnSaveBtn.js +3 -3
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Storage } from "@nakamura-123/types";
|
|
2
2
|
export declare const coinCheckFnc: import("@reduxjs/toolkit").AsyncThunk<void, string, {
|
|
3
3
|
state?: unknown;
|
|
4
|
-
dispatch?: import("redux").Dispatch;
|
|
4
|
+
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
5
5
|
extra?: unknown;
|
|
6
6
|
rejectValue?: unknown;
|
|
7
7
|
serializedErrorType?: unknown;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import RNIap, { ProductPurchase } from "react-native-iap";
|
|
1
|
+
import RNIap, { Product, ProductPurchase } from "react-native-iap";
|
|
2
2
|
import { Storage } from "@nakamura-123/types";
|
|
3
3
|
export declare const initializeIAP: (paymentItems: string[] | undefined, setProducts: (products: RNIap.Product[]) => void, setLoading: (loading: boolean) => void) => Promise<void>;
|
|
4
4
|
export declare const handlePurchase: (productId: string, dispatch: (action: any) => void) => Promise<ProductPurchase | null>;
|
|
@@ -12,15 +12,17 @@ var CaraCard = function (_a) {
|
|
|
12
12
|
var scoreInfo = _a.scoreInfo;
|
|
13
13
|
var imgs = (0, react_redux_1.useSelector)(function (state) { return state.app.imgs; });
|
|
14
14
|
var showCharactor = (0, react_redux_1.useSelector)(function (state) { var _a; return (_a = state.app.appSetting.setting) === null || _a === void 0 ? void 0 : _a.showCharactor; }) || false;
|
|
15
|
-
var imgPath = imgs.chara.lv1;
|
|
16
15
|
// 正答割合を取得
|
|
17
16
|
var percent = scoreInfo.percent;
|
|
18
|
-
var
|
|
17
|
+
var scoreItem = lib_1.scoreLevels.find(function (item) {
|
|
19
18
|
return percent <= item.maxPercent;
|
|
20
19
|
});
|
|
21
|
-
var enTitle = (
|
|
22
|
-
var jpTitle = (
|
|
20
|
+
var enTitle = (scoreItem === null || scoreItem === void 0 ? void 0 : scoreItem.enTitle) || "Great Job";
|
|
21
|
+
var jpTitle = (scoreItem === null || scoreItem === void 0 ? void 0 : scoreItem.jpTitle) || "なかなかやるね";
|
|
22
|
+
var level = (scoreItem === null || scoreItem === void 0 ? void 0 : scoreItem.level) || "l2";
|
|
23
|
+
var imgPath = imgs.chara[level];
|
|
23
24
|
return (<react_native_1.View style={styles.container}>
|
|
25
|
+
{/* <View style={styles.circle} /> */}
|
|
24
26
|
<common_1.MyText style={styles.title}>{enTitle}</common_1.MyText>
|
|
25
27
|
<common_1.MyText color="gray">{jpTitle}</common_1.MyText>
|
|
26
28
|
{showCharactor && <react_native_1.Image style={styles.imgBox} source={imgPath}/>}
|
|
@@ -40,5 +42,14 @@ var styles = react_native_1.StyleSheet.create({
|
|
|
40
42
|
width: 130,
|
|
41
43
|
height: 130,
|
|
42
44
|
},
|
|
45
|
+
circle: {
|
|
46
|
+
width: 200,
|
|
47
|
+
height: 200,
|
|
48
|
+
borderRadius: 150,
|
|
49
|
+
backgroundColor: lib_1.colors.green,
|
|
50
|
+
position: "absolute",
|
|
51
|
+
top: 20,
|
|
52
|
+
opacity: 0.4, // Add opacity to make it slightly transparent
|
|
53
|
+
},
|
|
43
54
|
});
|
|
44
55
|
exports.default = CaraCard;
|
|
@@ -2,3 +2,4 @@ import Realm from "realm";
|
|
|
2
2
|
import { ASetting } from "@nakamura-123/types";
|
|
3
3
|
import { AppDispatch } from "@nakamura-123/stores";
|
|
4
4
|
export declare const handleOldData: (realm: Realm, oldInfo: ASetting.OldInfo, dispatch: AppDispatch, msg?: string) => Promise<void>;
|
|
5
|
+
export declare const existOldData: () => Promise<boolean>;
|
|
@@ -36,7 +36,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
36
36
|
}
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.handleOldData = void 0;
|
|
39
|
+
exports.existOldData = exports.handleOldData = void 0;
|
|
40
40
|
var toolkit_1 = require("@reduxjs/toolkit");
|
|
41
41
|
var db_1 = require("@nakamura-123/db");
|
|
42
42
|
var stores_1 = require("@nakamura-123/stores");
|
|
@@ -54,7 +54,6 @@ var handleOldData = function (realm, oldInfo, dispatch, msg) { return __awaiter(
|
|
|
54
54
|
return __generator(this, function (_a) {
|
|
55
55
|
switch (_a.label) {
|
|
56
56
|
case 0:
|
|
57
|
-
dispatch({ type: "setting/guideStateFalse", payload: "loadOldData" });
|
|
58
57
|
dispatch(stores_1.settingStorage.saveSetting());
|
|
59
58
|
if (!oldInfo) return [3 /*break*/, 4];
|
|
60
59
|
return [4 /*yield*/, loadingAllOldData(realm, oldInfo)];
|
|
@@ -75,8 +74,7 @@ var handleOldData = function (realm, oldInfo, dispatch, msg) { return __awaiter(
|
|
|
75
74
|
}
|
|
76
75
|
});
|
|
77
76
|
}); }, "実行する", function () {
|
|
78
|
-
|
|
79
|
-
dispatch(stores_1.settingStorage.saveSetting());
|
|
77
|
+
console.log("キャンセル");
|
|
80
78
|
});
|
|
81
79
|
return [2 /*return*/];
|
|
82
80
|
});
|
|
@@ -214,3 +212,16 @@ var loadOldInputId = (0, toolkit_1.createAsyncThunk)("old/loadOldInputId", funct
|
|
|
214
212
|
});
|
|
215
213
|
});
|
|
216
214
|
});
|
|
215
|
+
// 90. 旧データの存在をMarkデータから確認
|
|
216
|
+
var existOldData = function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
217
|
+
var markData;
|
|
218
|
+
return __generator(this, function (_a) {
|
|
219
|
+
switch (_a.label) {
|
|
220
|
+
case 0: return [4 /*yield*/, loadOldData("mark")];
|
|
221
|
+
case 1:
|
|
222
|
+
markData = _a.sent();
|
|
223
|
+
return [2 /*return*/, markData !== null]; // null チェックを簡潔に
|
|
224
|
+
}
|
|
225
|
+
});
|
|
226
|
+
}); };
|
|
227
|
+
exports.existOldData = existOldData;
|
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
import { Results } from "realm";
|
|
2
2
|
import { dQuestionSchema } from "@nakamura-123/db";
|
|
3
|
-
import { CfgInitial } from "@nakamura-123/stores";
|
|
4
3
|
import { Store } from "@nakamura-123/types";
|
|
5
4
|
type QuestionType = typeof dQuestionSchema.prototype;
|
|
6
5
|
type QR = Results<QuestionType>;
|
|
7
|
-
type startCfg = CfgInitial["startCfg"];
|
|
8
6
|
export declare const getUnitQuestions: (questions: QR, unitId: number) => QR;
|
|
9
7
|
export declare const getSubUnitQuestions: (questions: QR, unitId: number, subUnitId: number) => QR;
|
|
10
8
|
export declare const getYearQuestions: (questions: QR, year: number) => QR;
|
|
11
9
|
export declare const getSubYearQuestions: (questions: QR, year: number, key: number) => QR;
|
|
12
10
|
export declare const filterByOutOfYearRange: (questions: QR, outOfYearRange: number[]) => QR;
|
|
13
11
|
export declare const filterByOutOfUnitRange: (questions: QR, outOfUnitRange: number[]) => QR;
|
|
14
|
-
export declare const filterByTags: (questions: QR, startCfg:
|
|
12
|
+
export declare const filterByTags: (questions: QR, startCfg: {
|
|
13
|
+
tags: import("@nakamura-123/types/dist/types/libType").LevelNames[];
|
|
14
|
+
option: import("@nakamura-123/lib/dist/config/startOption").QuizStartOptionValue;
|
|
15
|
+
outOfYearRange: number[];
|
|
16
|
+
}) => QR;
|
|
15
17
|
export declare const commonFilter: (questions: Store.DQInStore[], quizCnt: number, isShuffle: boolean) => Store.DQInStore[];
|
|
16
18
|
export {};
|
package/dist/page/BootPage.js
CHANGED
|
@@ -35,9 +35,9 @@ var BootPage = function (_a) {
|
|
|
35
35
|
var yearLength = (0, react_redux_1.useSelector)(function (state) { return state.app.yearList; }).length;
|
|
36
36
|
// アベレージバーのデータ生成
|
|
37
37
|
var l4TagCnt = (0, tagFnc_1.getCompletedTagRate)(tagLevels, true);
|
|
38
|
-
var allQuizCnt =
|
|
39
|
-
var average = Math.round((l4TagCnt / allQuizCnt) * 100);
|
|
40
|
-
var barLabel = "\u8D64\u3075\u305B\u3093\u306E\u5272\u5408\n(
|
|
38
|
+
var allQuizCnt = tagLevels.length || 0;
|
|
39
|
+
var average = Math.round((l4TagCnt / allQuizCnt) * 100) || 0;
|
|
40
|
+
var barLabel = "\u8D64\u3075\u305B\u3093\u306E\u5272\u5408\n(".concat(allQuizCnt, "\u554F\u4E2D)");
|
|
41
41
|
// 履歴情報
|
|
42
42
|
var historyParams = {
|
|
43
43
|
subject: subject.name,
|
|
@@ -73,7 +73,7 @@ var GetBadgePage = function (_a) {
|
|
|
73
73
|
var notification = (0, react_redux_1.useSelector)(function (state) { return state.score.notification; });
|
|
74
74
|
if (notification.length === 0)
|
|
75
75
|
return null;
|
|
76
|
-
var imgPath = imgs.chara.
|
|
76
|
+
var imgPath = imgs.chara.l1;
|
|
77
77
|
var title = notification[0].title || "";
|
|
78
78
|
var badgeName = notification[0].name || "";
|
|
79
79
|
var badgeColor = notification[0].color || "blue";
|
package/dist/page/HomePage.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { Home, Nav } from "@nakamura-123/types";
|
|
3
3
|
interface Prop {
|
|
4
|
-
menuLists:
|
|
4
|
+
menuLists: Home.MenuListItem[];
|
|
5
5
|
navigation: Nav.NavigationProp<"Home">;
|
|
6
6
|
}
|
|
7
7
|
declare const HomePage: React.FC<Prop>;
|
package/dist/page/HomePage.js
CHANGED
|
@@ -22,6 +22,42 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
22
22
|
__setModuleDefault(result, mod);
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
26
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
27
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
28
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
29
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
30
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
31
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
32
|
+
});
|
|
33
|
+
};
|
|
34
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
35
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
36
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
37
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
38
|
+
function step(op) {
|
|
39
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
40
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
41
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
42
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
43
|
+
switch (op[0]) {
|
|
44
|
+
case 0: case 1: t = op; break;
|
|
45
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
46
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
47
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
48
|
+
default:
|
|
49
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
50
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
51
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
52
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
53
|
+
if (t[2]) _.ops.pop();
|
|
54
|
+
_.trys.pop(); continue;
|
|
55
|
+
}
|
|
56
|
+
op = body.call(thisArg, _);
|
|
57
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
58
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
59
|
+
}
|
|
60
|
+
};
|
|
25
61
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
62
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
63
|
};
|
|
@@ -32,6 +68,7 @@ var realm_1 = __importDefault(require("realm"));
|
|
|
32
68
|
var react_redux_1 = require("react-redux");
|
|
33
69
|
var react_2 = require("@realm/react");
|
|
34
70
|
var common_1 = require("@nakamura-123/common");
|
|
71
|
+
var stores_1 = require("@nakamura-123/stores");
|
|
35
72
|
var lib_1 = require("@nakamura-123/lib");
|
|
36
73
|
var db_1 = require("@nakamura-123/db");
|
|
37
74
|
var GradeCard_1 = __importDefault(require("../component/Grade/GradeCard/GradeCard"));
|
|
@@ -42,8 +79,6 @@ var MenuRectangle = function (_a) {
|
|
|
42
79
|
var menu = _a.menu, navigation = _a.navigation;
|
|
43
80
|
var title = menu.title, note = menu.note, icon = menu.icon, color = menu.color, link = menu.link;
|
|
44
81
|
var handlePress = function () {
|
|
45
|
-
if (link === "History" || link === "ImgZoom")
|
|
46
|
-
return;
|
|
47
82
|
navigation.navigate(link);
|
|
48
83
|
};
|
|
49
84
|
return (<common_1.RectangleCard title={title} note={note} left={<common_1.IconInCircle name={icon} size={25}/>} onPress={handlePress} color={color} outerStyle={{ marginBottom: 20 }}/>);
|
|
@@ -59,11 +94,24 @@ var HomePage = function (_a) {
|
|
|
59
94
|
var settingAsyncLoaded = (0, react_redux_1.useSelector)(function (state) { return state.setting.asyncLoaded; });
|
|
60
95
|
var oldInfo = (0, react_redux_1.useSelector)(function (state) { return state.app.appSetting.oldInfo; });
|
|
61
96
|
(0, react_1.useEffect)(function () {
|
|
62
|
-
if (!settingAsyncLoaded)
|
|
97
|
+
if (!showLoadOldData || !settingAsyncLoaded)
|
|
63
98
|
return;
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
99
|
+
dispatch({ type: "setting/guideStateFalse", payload: "loadOldData" });
|
|
100
|
+
dispatch(stores_1.settingStorage.saveSetting());
|
|
101
|
+
var fetchOldData = function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
102
|
+
var existOldMarkData;
|
|
103
|
+
return __generator(this, function (_a) {
|
|
104
|
+
switch (_a.label) {
|
|
105
|
+
case 0: return [4 /*yield*/, (0, oldStorageFnc_1.existOldData)()];
|
|
106
|
+
case 1:
|
|
107
|
+
existOldMarkData = _a.sent();
|
|
108
|
+
if (existOldMarkData && oldInfo.testInfo.length > 0)
|
|
109
|
+
(0, oldStorageFnc_1.handleOldData)(realm, oldInfo, dispatch, LOAD_OLD_MSG);
|
|
110
|
+
return [2 /*return*/];
|
|
111
|
+
}
|
|
112
|
+
});
|
|
113
|
+
}); };
|
|
114
|
+
fetchOldData();
|
|
67
115
|
}, [showLoadOldData, settingAsyncLoaded]);
|
|
68
116
|
// これはデバッグ用です。
|
|
69
117
|
if (__DEV__)
|
package/dist/page/ReportPage.js
CHANGED
|
@@ -79,7 +79,6 @@ var ReportPage = function (_a) {
|
|
|
79
79
|
var _b = (0, react_1.useState)(null), type = _b[0], setType = _b[1];
|
|
80
80
|
var _c = (0, react_1.useState)(""), mail = _c[0], setMail = _c[1];
|
|
81
81
|
var _d = (0, react_1.useState)(""), inquiry = _d[0], setInquiry = _d[1];
|
|
82
|
-
var storeQuiz = (0, react_redux_1.useSelector)(function (state) { return state.quiz; });
|
|
83
82
|
var storeSetting = (0, react_redux_1.useSelector)(function (state) { return state.setting; });
|
|
84
83
|
var errorLogs = (0, react_redux_1.useSelector)(function (state) { return state.error; });
|
|
85
84
|
var selectedQuiz = (0, quizHook_1.useQuestionData)();
|
|
@@ -102,11 +101,10 @@ var ReportPage = function (_a) {
|
|
|
102
101
|
type: appName,
|
|
103
102
|
appKey: appKey,
|
|
104
103
|
mail: mail,
|
|
105
|
-
|
|
104
|
+
comment: inquiry,
|
|
106
105
|
selectedQuiz: selectedQuiz,
|
|
107
|
-
storeQuiz: storeQuiz,
|
|
108
|
-
storeSetting: storeSetting,
|
|
109
106
|
device: device,
|
|
107
|
+
storeSetting: storeSetting,
|
|
110
108
|
errorLogs: errorLogs,
|
|
111
109
|
})];
|
|
112
110
|
case 2:
|
package/dist/page/SettingPage.js
CHANGED
|
@@ -53,6 +53,8 @@ var SettingPage = function (_a) {
|
|
|
53
53
|
icon: "exchange-alt",
|
|
54
54
|
color: "yellow",
|
|
55
55
|
handlePress: function () {
|
|
56
|
+
if (oldInfo.testInfo.length === 0)
|
|
57
|
+
react_native_1.Alert.alert("エラー", "このアプリは、公開時点で新アプリに移行しているため、旧システムのデータは存在しません。");
|
|
56
58
|
(0, oldStorageFnc_1.handleOldData)(realm, oldInfo, dispatch);
|
|
57
59
|
},
|
|
58
60
|
},
|
|
@@ -4,7 +4,7 @@ exports.getExplainDatas = void 0;
|
|
|
4
4
|
var getExplainDatas = function (word, Q) {
|
|
5
5
|
var yearId = Q.yearId, num = Q.num, form = Q.form;
|
|
6
6
|
if (word.startsWith("lmn"))
|
|
7
|
-
return { word: word.slice(3), color: "
|
|
7
|
+
return { word: word.slice(3), color: "lemon", viewType: "base" };
|
|
8
8
|
if (word.startsWith("(記入例"))
|
|
9
9
|
return { word: word, color: "light", viewType: "copy" };
|
|
10
10
|
if (word.startsWith("/"))
|
|
@@ -29,26 +29,26 @@ var react_redux_1 = require("react-redux");
|
|
|
29
29
|
var Animatable = __importStar(require("react-native-animatable"));
|
|
30
30
|
var common_1 = require("@nakamura-123/common");
|
|
31
31
|
var stores_1 = require("@nakamura-123/stores");
|
|
32
|
-
var loadQuizFromStorage = stores_1.saveStorage.loadQuizFromStorage;
|
|
32
|
+
var loadQuizFromStorage = stores_1.saveStorage.loadQuizFromStorage, deleteQuizInStorage = stores_1.saveStorage.deleteQuizInStorage;
|
|
33
33
|
var QuizSaveData = function (_a) {
|
|
34
34
|
var navigation = _a.navigation, saveKey = _a.saveKey;
|
|
35
35
|
var dispatch = (0, react_redux_1.useDispatch)();
|
|
36
|
-
var _b = (0, react_1.useState)(false), isShowSaveData = _b[0], setIsShowSaveData = _b[1];
|
|
37
|
-
(0, react_1.useEffect)(function () {
|
|
38
|
-
setTimeout(function () {
|
|
39
|
-
dispatch(loadQuizFromStorage(saveKey));
|
|
40
|
-
setIsShowSaveData(true);
|
|
41
|
-
}, 500);
|
|
42
|
-
}, []);
|
|
43
36
|
var isExistedSaveData = (0, react_redux_1.useSelector)(function (state) { return state.score.isSave[saveKey]; });
|
|
44
37
|
var lessonTitle = (0, react_redux_1.useSelector)(function (state) { return state.quiz.selected.lesson.title; });
|
|
45
38
|
var turn = (0, react_redux_1.useSelector)(function (state) { return state.quiz.currentInfo.state.turn; });
|
|
46
|
-
|
|
39
|
+
(0, react_1.useEffect)(function () {
|
|
40
|
+
dispatch(loadQuizFromStorage(saveKey));
|
|
41
|
+
}, []);
|
|
42
|
+
if (!isExistedSaveData)
|
|
47
43
|
return null;
|
|
48
44
|
var title = "つづきからはじめる";
|
|
49
45
|
var note = "\u3010".concat(lessonTitle, "\u3011\u7B2C").concat(turn + 1, "\u554F\u304B\u3089");
|
|
46
|
+
var onPress = function () {
|
|
47
|
+
dispatch(deleteQuizInStorage(saveKey));
|
|
48
|
+
navigation.navigate("Quiz");
|
|
49
|
+
};
|
|
50
50
|
return (<Animatable.View style={styles.fixedBottom} animation="fadeIn" duration={500} useNativeDriver>
|
|
51
|
-
<common_1.RectangleCard title={title} note={note} left={<common_1.IconInCircle name="save" size={30}/>} onPress={
|
|
51
|
+
<common_1.RectangleCard title={title} note={note} left={<common_1.IconInCircle name="save" size={30}/>} onPress={onPress} color="blue" style={styles.card}/>
|
|
52
52
|
</Animatable.View>);
|
|
53
53
|
};
|
|
54
54
|
var styles = react_native_1.StyleSheet.create({
|
|
@@ -67,9 +67,9 @@ var ModalWithButton = function (_a) {
|
|
|
67
67
|
{/* モーダル内のシンプルなサンプルコンテンツ */}
|
|
68
68
|
<common_1.MyText fsize="md">{msg}</common_1.MyText>
|
|
69
69
|
<react_native_1.View style={styles.btnBox}>
|
|
70
|
-
<common_1.MiniIconBtn onPress={function () { return handlePress(); }} icon="
|
|
71
|
-
<common_1.MiniIconBtn onPress={function () { return goBack(); }} icon="times" title="保存せず中断" color="
|
|
72
|
-
<common_1.MiniIconBtn onPress={function () { return closeModal(); }} icon="ban" title="キャンセル" color="
|
|
70
|
+
<common_1.MiniIconBtn onPress={function () { return handlePress(); }} icon="save" title="保存して中断" color="blue" width={200} style={{ marginBottom: 15 }}/>
|
|
71
|
+
<common_1.MiniIconBtn onPress={function () { return goBack(); }} icon="times" title="保存せず中断" color="ltBlack" width={200} style={{ marginBottom: 15 }}/>
|
|
72
|
+
<common_1.MiniIconBtn onPress={function () { return closeModal(); }} icon="ban" title="キャンセル" color="beige" width={200}/>
|
|
73
73
|
</react_native_1.View>
|
|
74
74
|
</common_1.BaseModal>
|
|
75
75
|
</react_native_1.View>);
|