sales-frontend-components 0.0.162 → 0.0.163

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/index.cjs.js CHANGED
@@ -4368,7 +4368,7 @@ function DudUpload() {
4368
4368
  function DudDownload() {
4369
4369
  const [fileId, setFileId] = React.useState("");
4370
4370
  const [enabled, setEnable] = React.useState(false);
4371
- const { data } = method.useDudExternalFileDownloadQuery(
4371
+ const { data, isError, isSuccess } = method.useDudExternalFileDownloadQuery(
4372
4372
  {
4373
4373
  fileMgmtId: fileId,
4374
4374
  outputType: "BINARY"
@@ -4387,7 +4387,9 @@ function DudDownload() {
4387
4387
  return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
4388
4388
  /* @__PURE__ */ jsxRuntime.jsx("input", { type: "text", value: fileId, onChange: (e) => setFileId(e.target.value) }),
4389
4389
  /* @__PURE__ */ jsxRuntime.jsx("input", { type: "button", value: "down", onClick: () => setEnable(true) }),
4390
- JSON.stringify(data)
4390
+ JSON.stringify(data),
4391
+ isError && /* @__PURE__ */ jsxRuntime.jsx("div", { children: "\uC5D0\uB7EC" }),
4392
+ isSuccess && /* @__PURE__ */ jsxRuntime.jsx("div", { children: "\uC131\uACF5" })
4391
4393
  ] });
4392
4394
  }
4393
4395