Skip to content

Commit 60d0313

Browse files
committed
QAGDEV-677 – Fix styles – Training cards
1 parent cdec31e commit 60d0313

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/features/training-purchases/views/training-purchases/training-purchases.styled.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import { ReactComponent as LogoWhite } from "assets/icons/logo-white.svg";
1111
export const StyledGrid = styled(Grid)({
1212
marginTop: 0,
1313
marginBottom: "20px",
14-
justifyContent: "space-between",
1514
position: "relative",
1615
});
1716

src/features/training-purchases/views/training-purchases/training-purchases.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const TrainingPurchases: FC<ITrainings> = ({ data }) => {
2525
const [anchorEl, setAnchorEl] = useState<Maybe<HTMLElement>>(null);
2626
const [openMentorsById, setOpenMentorsById] = useState<string | null>(null);
2727

28-
const gridMdValue = trainingPurchases?.length! >= 3 ? 4 : 6;
28+
const gridValue = trainingPurchases?.length! >= 3 ? 4 : 6;
2929

3030
// const [openCalendarById, setOpenCalendarById] = useState<string | null>(null);
3131
// const calendarRefs = useRef<{ [key: string]: RefObject<HTMLElement> }>({});
@@ -110,7 +110,7 @@ const TrainingPurchases: FC<ITrainings> = ({ data }) => {
110110
const [firstMentor, ...otherMentors] = mentors || [];
111111

112112
return (
113-
<Grid item key={id} xs={12} md={gridMdValue}>
113+
<Grid item key={id} xs={12} md={6} lg={gridValue}>
114114
<StyledCardActionArea>
115115
<StyledPaper>
116116
<StyledImgBox>{renderCourseImage(picture)}</StyledImgBox>

0 commit comments

Comments
 (0)