Skip to content

Commit

Permalink
fix: rename
Browse files Browse the repository at this point in the history
  • Loading branch information
swkatmask committed Dec 5, 2024
1 parent b0f0928 commit 4064fc8
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ export function RedPacketERC20Form(props: RedPacketFormProps) {
// amount
const [rawAmount, setRawAmount] = useState(
!origin
? '1'
? ''
: origin.isRandom
? formatBalance(origin.total, origin.token?.decimals ?? 0)
: formatBalance(new BigNumber(origin.total ?? '0').div(origin.shares ?? 1), origin.token?.decimals ?? 0),
Expand Down
2 changes: 1 addition & 1 deletion src/maskbook
Submodule maskbook updated 0 files
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import LeftArrowIcon from '@/assets/left-arrow.svg';
import { Modal } from '@/components/Modal.js';
import { useSingletonModal } from '@/hooks/useSingletonModal.js';
import type { SingletonModalRefCreator } from '@/libs/SingletonModal.js';
import { ChannelSelectPanel, type ChannelSelectPanelProps } from '@/modals/LensClubSelectModal/ClubSelectPanel.js';
import { ChannelSelectPanel, type ChannelSelectPanelProps } from '@/modals/ChannelSelectModal/ChannelSelectPanel.js';
import type { Channel } from '@/providers/types/SocialMedia.js';

export interface ChannelSelectModalOpenProps {
Expand All @@ -16,9 +16,9 @@ export interface ChannelSelectModalOpenProps {

export type ChannelSelectModalCloseProps = Channel | null;

export const LensClubSelectModal = forwardRef<
export const ChannelSelectModal = forwardRef<
SingletonModalRefCreator<ChannelSelectModalOpenProps, ChannelSelectModalCloseProps>
>(function LensClubSelectModal(_, ref) {
>(function ChannelSelectModal(_, ref) {
const [props, setProps] = useState<ChannelSelectModalOpenProps>();

const [open, dispatch] = useSingletonModal(ref, {
Expand Down
2 changes: 1 addition & 1 deletion src/modals/controls.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { SingletonModal } from '@/libs/SingletonModal.js';
import type { AddWalletModalCloseProps, AddWalletModalProps } from '@/modals/AddWalletModal.js';
import type { ChannelSelectModalCloseProps, ChannelSelectModalOpenProps } from '@/modals/ChannelSelectModal/index.jsx';
import type { CollectArticleModalOpenProps } from '@/modals/CollectArticleModal.js';
import type { CollectPostModalOpenProps } from '@/modals/CollectPostModal.js';
import type { ComposeModalCloseProps, ComposeModalOpenProps } from '@/modals/ComposeModal.js';
Expand All @@ -9,7 +10,6 @@ import type { ConfirmModalCloseResult, ConfirmModalOpenProps } from '@/modals/Co
import type { DisconnectFireflyAccountModalProps } from '@/modals/DisconnectFireflyAccountModal.js';
import type { DraggablePopoverProps } from '@/modals/DraggablePopover.js';
import type { EditProfileModalOpenProps } from '@/modals/EditProfileModal.js';
import type { ChannelSelectModalCloseProps, ChannelSelectModalOpenProps } from '@/modals/LensClubSelectModal/index.jsx';
import type { LoginModalOpenProps } from '@/modals/LoginModal/index.js';
import type { LogoutModalProps } from '@/modals/LogoutModal.js';
import type {
Expand Down
4 changes: 2 additions & 2 deletions src/modals/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { memo } from 'react';
import { SolanaAccountModal } from '@/components/SolanaAccountModal.js';
import { AccountModal } from '@/modals/AccountModal.js';
import { AddWalletModal } from '@/modals/AddWalletModal.js';
import { ChannelSelectModal } from '@/modals/ChannelSelectModal/index.js';
import { CollectArticleModal } from '@/modals/CollectArticleModal.js';
import { CollectPostModal } from '@/modals/CollectPostModal.js';
import { ComposeModal } from '@/modals/ComposeModal.js';
Expand All @@ -18,7 +19,6 @@ import { DisconnectFireflyAccountModal } from '@/modals/DisconnectFireflyAccount
import { DraggablePopover } from '@/modals/DraggablePopover.js';
import { EditProfileModal } from '@/modals/EditProfileModal.js';
import { EnableSignlessModal } from '@/modals/EnableSignlessModal.js';
import { LensClubSelectModal } from '@/modals/LensClubSelectModal/index.js';
import { LoginModal } from '@/modals/LoginModal/index.js';
import { LogoutModal } from '@/modals/LogoutModal.js';
import { NonFungibleCollectionSelectModal } from '@/modals/NonFungbileCollectionSelectModal/index.js';
Expand Down Expand Up @@ -58,7 +58,7 @@ export const Modals = memo(function Modals() {
<DisconnectFireflyAccountModal ref={controls.DisconnectFireflyAccountModalRef.register} />
<TokenSelectorModal ref={controls.TokenSelectorModalRef.register} />
<NonFungibleCollectionSelectModal ref={controls.NonFungibleTokenCollectionSelectModalRef.register} />
<LensClubSelectModal ref={controls.ChannelSelectModalRef.register} />
<ChannelSelectModal ref={controls.ChannelSelectModalRef.register} />
</>
);
});

0 comments on commit 4064fc8

Please sign in to comment.