@soul-refiner/design-system 1.6.7 → 1.6.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import React from 'react';
|
|
3
|
+
import Image from 'next/image';
|
|
3
4
|
import styled from 'styled-components';
|
|
4
5
|
import { Button, P, Box, H } from '../..';
|
|
5
6
|
import { GraduationCap, Search as SearchIcon, Plus, Close, } from '../../../icons';
|
|
@@ -55,7 +56,10 @@ export const CoursesSelection = ({ closeOnChange = true, closeOnBlur = true, dis
|
|
|
55
56
|
alignItems: 'center',
|
|
56
57
|
marginTop: '16px',
|
|
57
58
|
} },
|
|
58
|
-
React.createElement(
|
|
59
|
+
React.createElement(Image, { alt: "", height: 64, width: 114, src: course.imageSrc, quality: 100, style: {
|
|
60
|
+
borderRadius: '8px',
|
|
61
|
+
marginRight: '16px',
|
|
62
|
+
} }),
|
|
59
63
|
React.createElement(P, { sx: "margin-left: 16px;" }, course.name),
|
|
60
64
|
React.createElement(Close, { sx: "cursor: pointer; margin-left: auto;", onClick: () => setCourseIsSelected({
|
|
61
65
|
...courseIsSelected,
|
|
@@ -115,12 +119,6 @@ const OptionWrapper = styled.div `
|
|
|
115
119
|
`;
|
|
116
120
|
}}
|
|
117
121
|
`;
|
|
118
|
-
const StyledImage = styled.img `
|
|
119
|
-
border-radius: 8px;
|
|
120
|
-
width: 113.78px;
|
|
121
|
-
height: 64px;
|
|
122
|
-
margin-right: 16px;
|
|
123
|
-
`;
|
|
124
122
|
const IconWrapper = styled.div `
|
|
125
123
|
padding: 12px;
|
|
126
124
|
border-radius: 8px;
|