gomtm 0.0.364 → 0.0.365
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.
|
@@ -118,32 +118,29 @@ function useGomtmForm2() {
|
|
|
118
118
|
const handleValuesSubmit = useCallback((values) => __async(this, null, function* () {
|
|
119
119
|
try {
|
|
120
120
|
const result = yield mutation.mutateAsync(values);
|
|
121
|
-
console.log("result", result);
|
|
121
|
+
console.log("result", result, "errCode", result.errCode);
|
|
122
122
|
const a = result;
|
|
123
123
|
if (a.errCode) {
|
|
124
124
|
toast("Error:" + a.errCode, {
|
|
125
|
-
description: a.errMessage,
|
|
126
|
-
|
|
127
|
-
label: "Undo",
|
|
128
|
-
onClick: () => console.log("Undo")
|
|
129
|
-
}
|
|
125
|
+
description: a.errMessage.substring(0, 100),
|
|
126
|
+
closeButton: true
|
|
130
127
|
});
|
|
131
128
|
} else {
|
|
132
129
|
toast("OK", {
|
|
133
|
-
// description: JSON.stringify(result, null, 2),
|
|
134
130
|
description: "ok",
|
|
135
|
-
action: {
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
}
|
|
131
|
+
// action: {
|
|
132
|
+
// label: "close",
|
|
133
|
+
// onClick: () => console.log("close"),
|
|
134
|
+
// },
|
|
135
|
+
closeButton: true
|
|
139
136
|
});
|
|
140
137
|
}
|
|
141
138
|
} catch (e) {
|
|
142
|
-
toast("
|
|
143
|
-
description:
|
|
139
|
+
toast("Unknown", {
|
|
140
|
+
description: e.toString(),
|
|
144
141
|
action: {
|
|
145
|
-
label: "
|
|
146
|
-
onClick: () => console.log("
|
|
142
|
+
label: "close",
|
|
143
|
+
onClick: () => console.log("close")
|
|
147
144
|
}
|
|
148
145
|
});
|
|
149
146
|
}
|
package/dist/esm/lib/meta.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Metadata, ResolvingMetadata } from 'next';
|
|
2
|
-
type Props = {
|
|
2
|
+
export type Props = {
|
|
3
3
|
params: {
|
|
4
4
|
id: string;
|
|
5
5
|
};
|
|
@@ -8,4 +8,3 @@ type Props = {
|
|
|
8
8
|
};
|
|
9
9
|
};
|
|
10
10
|
export declare function generateGomtmMetadata({ params, searchParams }: Props, parent: ResolvingMetadata): Promise<Metadata>;
|
|
11
|
-
export {};
|