Skip to content

Commit

Permalink
Enable sending Qi
Browse files Browse the repository at this point in the history
  • Loading branch information
rileystephens28 committed Nov 1, 2024
1 parent 5a10126 commit 1e4874a
Showing 3 changed files with 18 additions and 18 deletions.
Original file line number Diff line number Diff line change
@@ -36,16 +36,16 @@ const QiAccountOptionMenu = ({ paymentCode }: { paymentCode: string }) => {
/>
)}
options={[
// {
// key: "send",
// icon: "icons/s/arrow-up.svg",
// label: "Send asset",
// onClick: async () => {
// await dispatch(resetQiSendSlice())
// history.push("/send-qi")
// await dispatch(setShowingAccountsModal(false))
// },
// },
{
key: "send",
icon: "icons/s/arrow-up.svg",
label: "Send asset",
onClick: async () => {
await dispatch(resetQiSendSlice())
history.push("/send-qi")
await dispatch(setShowingAccountsModal(false))
},
},
{
key: "copy",
icon: "icons/s/copy.svg",
6 changes: 3 additions & 3 deletions ui/components/Wallet/WalletAccountBalanceControl.tsx
Original file line number Diff line number Diff line change
@@ -18,6 +18,7 @@ import ReadOnlyNotice from "../Shared/ReadOnlyNotice"
import SharedCircleButton from "../Shared/SharedCircleButton"
import BalanceReloader from '../BalanceReloader/BalanceReloader';
import humanNumber from "human-number"
import { resetQiSendSlice } from "@pelagus/pelagus-background/redux-slices/qiSend"

type ActionButtonsProps = {
onReceive: () => void
@@ -46,12 +47,11 @@ function ActionButtons(props: ActionButtonsProps): ReactElement {
return
}

// await dispatch(resetQiSendSlice())
// history.push("/send-qi")
await dispatch(resetQiSendSlice())
history.push("/send-qi")
}}
iconWidth="20"
iconHeight="18"
disabled={isUtxoSelected}
>
{t("send")}
</SharedCircleButton>
10 changes: 5 additions & 5 deletions ui/routes/routes.tsx
Original file line number Diff line number Diff line change
@@ -102,11 +102,11 @@ const pageList: PageList[] = [
Component: ConfirmTransactionPage,
hasTopBar: false,
},
// {
// path: "/send-qi",
// Component: SendPage,
// hasTopBar: false,
// },
{
path: "/send-qi",
Component: SendPage,
hasTopBar: false,
},
{
path: "/send",
Component: Send,

0 comments on commit 1e4874a

Please sign in to comment.