Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
lewisl9029 committed Mar 7, 2024
1 parent 098216a commit ef283e1
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 17 deletions.
8 changes: 4 additions & 4 deletions src/component-library/components/Avatar/Avatar.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Blockies from "react-blockies";
import xmtpIconUrl from '../../../images/xmtp-icon.png'
import xmtpIconUrl from "../../../images/xmtp-icon.png";

interface AvatarProps {
/**
Expand Down Expand Up @@ -49,6 +49,6 @@ export const Avatar = ({ url, isLoading, address }: AvatarProps) => {
);
};

export const Avatar_test = <Avatar url={xmtpIconUrl} />
export const AvatarWithAddress_test = <Avatar address="1234" />
export const AvatarLoading_test = <Avatar isLoading />
export const Avatar_test = <Avatar url={xmtpIconUrl} />;
export const AvatarWithAddress_test = <Avatar address="1234" />;
export const AvatarLoading_test = <Avatar isLoading />;
2 changes: 1 addition & 1 deletion src/component-library/components/Mobile/Mobile.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import xmtpIconUrl from '../../../images/xmtp-icon.png'
import xmtpIconUrl from "../../../images/xmtp-icon.png";

const LinkEle = ({ url, text }: { url: string; text: string }) => (
<a
Expand Down
20 changes: 9 additions & 11 deletions src/component-library/components/SideNav/SideNav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@ import {
import { ClipboardCopyIcon, XIcon } from "@heroicons/react/outline";
import { useTranslation } from "react-i18next";
import { QRCode } from "react-qrcode-logo";
import xmtpIconUrl from '../../../images/xmtp-icon.png'
import xmtpIconUrl from "../../../images/xmtp-icon.png";
import type { ETHAddress } from "../../../helpers";
import { classNames, isAppEnvDemo, shortAddress } from "../../../helpers";
import { XmtpIcon } from "../Icons/XmtpIcon";
import { Avatar } from "../Avatar/Avatar";
import { GhostButton } from "../GhostButton/GhostButton";
import { DisconnectIcon } from "../Icons/DisconnectIcon";
import i18next, { supportedLocales } from "../../../helpers/i18n";
import shareQrBgUrl from '../../../images/shareQrBg.png'
import xmtpLogoUrl from '../../../images/xmtp-logo.png'
import shareQrBgUrl from "../../../images/shareQrBg.png";
import xmtpLogoUrl from "../../../images/xmtp-logo.png";

interface SideNavProps {
/**
Expand Down Expand Up @@ -208,9 +208,11 @@ const SideNav = ({
<div
data-testid="share-qr-modal"
className="bg-[#ffffffa3] w-[100vw] h-[100vh] flex items-center justify-center absolute top-0 z-20">
<div className="bg-repeat-round m-4 lg:w-[35%] sm:w-[90%] md:w-[50%] h-[90vh] text-white flex flex-col items-center p-4 rounded-3xl drop-shadow-lg" style={{
backgroundImage: `url('${shareQrBgUrl}')`
}}>
<div
className="bg-repeat-round m-4 lg:w-[35%] sm:w-[90%] md:w-[50%] h-[90vh] text-white flex flex-col items-center p-4 rounded-3xl drop-shadow-lg"
style={{
backgroundImage: `url('${shareQrBgUrl}')`,
}}>
<div
role="button"
tabIndex={0}
Expand All @@ -224,11 +226,7 @@ const SideNav = ({
<XIcon width={24} />
</div>
<div className="h-8">
<img
className="h-[100%]"
alt="xmtp-logo"
src={xmtpLogoUrl}
/>
<img className="h-[100%]" alt="xmtp-logo" src={xmtpLogoUrl} />
</div>
<div className="text-center p-4 pb-6">
{t("common.share_code")}
Expand Down
2 changes: 1 addition & 1 deletion src/testConfig.tsx
Original file line number Diff line number Diff line change
@@ -1 +1 @@
import './globals.css'
import "./globals.css";

0 comments on commit ef283e1

Please sign in to comment.