Skip to content

Commit

Permalink
feat: hide KRC20 operation
Browse files Browse the repository at this point in the history
  • Loading branch information
0x7u committed Feb 28, 2025
1 parent a248af4 commit a1e1870
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion components/screens/Dashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ export default function Dashboard() {
<span className="text-daintree-400">Receive</span>
</div>

{wallet?.type !== "ledger" ? (
{settings?.preview ? (
<>
<div
className="flex cursor-pointer flex-col items-center gap-2"
Expand Down
7 changes: 5 additions & 2 deletions components/send/DetailsStep.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export const DetailsStep = ({
onBack?: () => void;
}) => {
const navigate = useNavigate();
const [settings] = useSettings();
const { account, addresses } = useWalletManager();
const { rpcClient, getMinimumFee } = useRpcClientStateful();
const { fetchDomainInfo } = useKns();
Expand Down Expand Up @@ -310,7 +311,7 @@ export const DetailsStep = ({
<div className="flex rounded-lg bg-[#102831] text-daintree-400 shadow-sm">
<button
type="button"
onClick={toggleTickerSelect}
onClick={() => settings?.preview && toggleTickerSelect}
className={twMerge(
"inline-flex min-w-fit items-center gap-2 rounded-s-md border border-e-0 border-daintree-700 px-4 text-sm",
errors.amount
Expand All @@ -325,7 +326,9 @@ export const DetailsStep = ({
onError={onImageError}
/>
{ticker.toUpperCase()}
<i className="hn hn-chevron-down h-[16px] w-[16px]"></i>
{settings?.preview && (
<i className="hn hn-chevron-down h-[16px] w-[16px]"></i>
)}
</button>
<input
{...register("amount", {
Expand Down

0 comments on commit a1e1870

Please sign in to comment.