From 5a942487c777a565a389dc7d3545db16173d48ac Mon Sep 17 00:00:00 2001
From: ap-justin <89639563+ap-justin@users.noreply.github.com>
Date: Thu, 3 Oct 2024 16:58:40 +0800
Subject: [PATCH] updated
---
src/pages/Funds/CreateFund/CreateFund.tsx | 27 +----------------------
src/pages/Funds/CreateFund/types.ts | 1 -
src/pages/Funds/CreateFund/useEndow.ts | 7 +++---
src/types/aws/ap/index.ts | 2 --
4 files changed, 4 insertions(+), 33 deletions(-)
diff --git a/src/pages/Funds/CreateFund/CreateFund.tsx b/src/pages/Funds/CreateFund/CreateFund.tsx
index 7aefbd2471..81ebc0cd90 100644
--- a/src/pages/Funds/CreateFund/CreateFund.tsx
+++ b/src/pages/Funds/CreateFund/CreateFund.tsx
@@ -1,7 +1,6 @@
import { yupResolver } from "@hookform/resolvers/yup";
import { ControlledImgEditor as ImgEditor } from "components/ImgEditor";
import Prompt from "components/Prompt";
-import { LockedSplitSlider } from "components/donation";
import {
NativeCheckField as CheckField,
NativeField as Field,
@@ -49,17 +48,12 @@ export default withAuth(function CreateFund() {
settings: {
from: "fund",
allowBgTip: true,
- liquidSplit: 50,
},
targetType: "smart",
},
});
const { field: banner } = useController({ control, name: "banner" });
const { field: logo } = useController({ control, name: "logo" });
- const { field: liquidSplitPct } = useController({
- control,
- name: "settings.liquidSplit",
- });
const { field: members } = useController({
control,
name: "members",
@@ -69,9 +63,6 @@ export default withAuth(function CreateFund() {
name: "targetType",
});
- //keep track of what user previously set
- //revert to it when endow is no longer 1
- const customSplitRef = useRef(50);
const customAllowBgTipRef = useRef(true);
const endowReqRef = useRef