Skip to content

Commit

Permalink
linter
Browse files Browse the repository at this point in the history
  • Loading branch information
wiktoriasalamon committed Jul 3, 2024
1 parent d34e512 commit 8ea84f7
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
6 changes: 4 additions & 2 deletions frontend/src/components/common/Card/Card.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
import { CardProps } from './Card.interface';
import { PropsWithChildren } from 'react';
import {Typography} from "@app/components/common/Typography";
import { Typography } from '@app/components/common/Typography';

export const Card: React.FC<PropsWithChildren<CardProps>> = ({ title, children }) => {
return (
<div className="rounded-xl bg-white shadow-sm ring-1 ring-navy-200/5 lg:w-[750px]">
<div className="px-4 py-6 sm:p-8">
<Typography as="h3" variant="head-s/semibold">{title}</Typography>
<Typography as="h3" variant="head-s/semibold">
{title}
</Typography>
<div className="py-8">{children}</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { useProfileSettings } from '@app/components/modules/ProfileSetting/Profi
import { CropImageModal } from './modules/CropImageModal';
import { ReactNode } from 'react';
import { DeleteImageModal } from './modules/DeleteImageModal';
import {Typography} from "@app/components/common/Typography";
import { Typography } from '@app/components/common/Typography';

export const ProfileSettings: React.FC<ProfileSettingsProps> = ({ data }) => {
const { firstName, lastName, email, ladders, photo } = data;
Expand Down Expand Up @@ -54,7 +54,9 @@ export const ProfileSettings: React.FC<ProfileSettingsProps> = ({ data }) => {
<Card title="Personal details">
<div className="flex w-full flex-row border-b border-navy-200 px-4 py-6 sm:col-span-2 sm:px-0">
<div className="grow">
<Typography variant="body-m/medium" className="mb-2">Profile photo</Typography>
<Typography variant="body-m/medium" className="mb-2">
Profile photo
</Typography>
<Avatar firstName={firstName} lastName={lastName} imageUrl={photo} variant="72" />
</div>
<div className="flex flex-row gap-4">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { CropImageModalProps } from './CropImageModal.interface';
import { useCropImageModal } from './CropImageModal.hooks';
import { Button } from '@app/components/common/Button';
import { ZOOM_SLIDER_MULTIPLIER } from './constants';
import {Typography} from "@app/components/common/Typography";
import { Typography } from '@app/components/common/Typography';

export const CropImageModal: React.FC<CropImageModalProps> = ({ imageSrc, open, onClose, onSave }) => {
const { crop, zoom, handleCropChange, handleZoomChange, handleCropComplete, handleZoomInputChange, handleSave } =
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Modal } from '@app/components/common/Modal';
import { Button } from '@app/components/common/Button';
import { DeleteImageModalProps } from './DeleteImageModal.interface';
import {Typography} from "@app/components/common/Typography";
import { Typography } from '@app/components/common/Typography';

export const DeleteImageModal: React.FC<DeleteImageModalProps> = ({ open, onClose, onDelete }) => {
return (
Expand Down

0 comments on commit 8ea84f7

Please sign in to comment.