Skip to content

Commit 11d8898

Browse files
committed
SD-102: Temporarily hide fee documentation link in fee breakdown modal
1 parent fa9be6e commit 11d8898

File tree

4 files changed

+12
-11
lines changed

4 files changed

+12
-11
lines changed

src/domains/misc/components/Modal/Modal.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ const Modal = ({
5858

5959
useEffect(() => {
6060
const handleEsc = (e: KeyboardEvent) => {
61-
// Only handle ESC key if this is the top modal and it's not non-dismissible
6261
if (e.key === 'Escape' && !nonDismissible && isTopModal) {
6362
triggerClose();
6463
}

src/domains/shielder/components/TokenList/Modals/SendModal/SendModal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const SendModal = ({ token }: Props) => {
2626
const { address } = useWallet();
2727
const [addressTo, setAddressTo] = useState('');
2828
const [amount, setAmount] = useState(0n);
29-
const [inputValue, setInputValue] = useState(''); // Store input value at modal level
29+
const [inputValue, setInputValue] = useState('');
3030
const { withdraw, isWithdrawing } = useWithdraw();
3131
const [page, setPage] = useState(0);
3232
const { close } = useModalControls();

src/domains/shielder/components/TokenList/Modals/ShieldModal/ShieldModal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const ShieldModal = ({ token }: Props) => {
2525
const { address } = useWallet();
2626
const { close } = useModalControls();
2727
const [amount, setAmount] = useState(0n);
28-
const [inputValue, setInputValue] = useState(''); // Store input value at modal level
28+
const [inputValue, setInputValue] = useState('');
2929
const chainConfig = useChain();
3030
const { shield, isShielding, reset } = useShield();
3131
const [page, setPage] = useState(0);

src/domains/shielder/utils/useFeeBreakdownModal.tsx

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -111,11 +111,12 @@ const useFeeBreakdownModal = ({ fees, totalFee }: Props) => {
111111
<Divider />
112112
<Disclaimer>
113113
This is the maximum estimate—it can be slightly lower upon execution.
114-
<br />
114+
{/* TODO: Temporarily commented out until fee documentation links are ready */}
115+
{/* <br />
115116
<br />
116117
Want to know more about fees?
117118
{' '}
118-
<LearnMoreLink>Learn more</LearnMoreLink>
119+
<LearnMoreLink>Learn more</LearnMoreLink> */}
119120
</Disclaimer>
120121
</Container>
121122
),
@@ -155,12 +156,13 @@ const Disclaimer = styled.p`
155156
color: ${vars('--color-neutral-foreground-2-rest')};
156157
`;
157158

158-
const LearnMoreLink = styled.span`
159-
color: ${vars('--color-brand-foreground-1-rest')};
160-
cursor: pointer;
161-
162-
text-decoration: underline;
163-
`;
159+
// TODO: Temporarily commented out until fee documentation links are ready
160+
// const LearnMoreLink = styled.span`
161+
// color: ${vars('--color-brand-foreground-1-rest')};
162+
// cursor: pointer;
163+
//
164+
// text-decoration: underline;
165+
// `;
164166

165167
const VerticalConnector = styled.div`
166168
height: 11px;

0 commit comments

Comments
 (0)