From 19a5754d30d01fa076706649408ead72a7a27959 Mon Sep 17 00:00:00 2001 From: IrohDW Date: Fri, 26 Jul 2024 15:46:08 -0600 Subject: [PATCH] FeeHistoryModal is now editable by app owner Fixed bug with feeFilter's Time Check in FeePricePublish.ts feeAmount in FeeData.tsx now fetches the newest price of a given FeeType instead of using a hardcoded value Fixed bug that prevented app from working if no FeeData was found Reverted publishing content as file back to base64 Vite builds with target "esnext" to allow top level await. --- .../common/Comments/CommentEditor.tsx | 2 +- vite.config.ts | 19 +++++++++++-------- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/src/components/common/Comments/CommentEditor.tsx b/src/components/common/Comments/CommentEditor.tsx index 39e48f1..0032b26 100644 --- a/src/components/common/Comments/CommentEditor.tsx +++ b/src/components/common/Comments/CommentEditor.tsx @@ -161,7 +161,7 @@ export const CommentEditor = ({ action: "PUBLISH_QDN_RESOURCE", name: name, service: "BLOG_COMMENT", - file: stringToFile(value), + data64: utf8ToBase64(value), identifier: identifier, }); diff --git a/vite.config.ts b/vite.config.ts index e61ca14..2d60944 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -1,8 +1,11 @@ -import { defineConfig } from 'vite' -import react from '@vitejs/plugin-react' - -// https://vitejs.dev/config/ -export default defineConfig({ - plugins: [react()], - base: "" -}) +import { defineConfig } from "vite"; +import react from "@vitejs/plugin-react"; + +// https://vitejs.dev/config/ +export default defineConfig({ + plugins: [react()], + base: "", + build: { + target: "esnext", //browsers can handle the latest ES features + }, +});