Fix various warnings

pull/73/head
J M Rossy 7 months ago
parent 11b5745328
commit aeb23f9d22
  1. 2
      src/components/search/SearchStates.tsx
  2. 22
      src/features/messages/MessageTable.tsx
  3. 1
      src/features/messages/cards/ContentDetailsCard.tsx
  4. 2
      src/features/messages/queries/parse.ts

@ -113,7 +113,7 @@ export function SearchUnknownError({ show }: { show: boolean }) {
<SearchError
show={show}
imgSrc={ErrorIcon}
text="Sorry, an error has occurred. Please try a query or try again later."
text="Sorry, an error has occurred. Please try again later."
imgWidth={70}
/>
);

@ -95,16 +95,18 @@ export function MessageSummaryRow({ message, mp }: { message: MessageStub; mp: M
{getHumanReadableTimeString(origin.timestamp)}
</LinkCell>
{statusIcon && (
<div className="absolute right-4 top-1/2 transform -translate-y-1/2">
<Image
src={statusIcon}
width={18}
height={18}
alt={statusTitle}
title={statusTitle}
className="pt-px"
/>
</div>
<LinkCell id={msgId} base64={base64} tdClasses="w-0">
<span className="absolute right-4 top-1/2 transform -translate-y-1/2">
<Image
src={statusIcon}
width={18}
height={18}
alt={statusTitle}
title={statusTitle}
className="pt-px"
/>
</span>
</LinkCell>
)}
</>
);

@ -51,6 +51,7 @@ export function ContentDetailsCard({
const rawBytes = useMemo(() => {
try {
if (!originDomainId || !destinationDomainId) return '';
return formatMessage(
MAILBOX_VERSION,
nonce,

@ -50,7 +50,7 @@ function parseMessageStub(multiProvider: MultiProvider, m: MessageStubEntry): Me
let destinationChainId =
m.destination_chain_id || multiProvider.tryGetChainId(destinationDomainId);
if (!destinationChainId) {
logger.warn(`No chainId known for domain ${destinationDomainId}. Using domain as chainId`);
logger.debug(`No chainId known for domain ${destinationDomainId}. Using domain as chainId`);
destinationChainId = destinationDomainId;
}
const isPiMsg =

Loading…
Cancel
Save