mirror of
https://github.com/Sosokker/SOS12.git
synced 2025-12-19 12:44:05 +01:00
Update Problem img
This commit is contained in:
parent
bdd11b3aae
commit
6536abefe6
@ -16,7 +16,8 @@ import { SectionWrapper } from '../hoc';
|
|||||||
import Cookies from 'js-cookie';
|
import Cookies from 'js-cookie';
|
||||||
import Preproblems from "./Preproblems.jsx";
|
import Preproblems from "./Preproblems.jsx";
|
||||||
|
|
||||||
export const ThemeContext = createContext(null);
|
|
||||||
|
// export const ThemeContext = createContext(null);
|
||||||
|
|
||||||
const CardItem = ({ card }) => {
|
const CardItem = ({ card }) => {
|
||||||
const [checked, setChecked] = useState(false);
|
const [checked, setChecked] = useState(false);
|
||||||
@ -50,7 +51,7 @@ const CardItem = ({ card }) => {
|
|||||||
pt: '56.25%',
|
pt: '56.25%',
|
||||||
height: 0,
|
height: 0,
|
||||||
}}
|
}}
|
||||||
image={myimage}
|
image={card.img}
|
||||||
/>
|
/>
|
||||||
<CardContent sx={{ flexGrow: 1 }}>
|
<CardContent sx={{ flexGrow: 1 }}>
|
||||||
<Typography
|
<Typography
|
||||||
@ -91,7 +92,7 @@ const Problems = () => {
|
|||||||
<div className="flex mt-4 border border-gray-500 p-4">
|
<div className="flex mt-4 border border-gray-500 p-4">
|
||||||
<Grid container spacing={4}>
|
<Grid container spacing={4}>
|
||||||
{cards.map((card) => (
|
{cards.map((card) => (
|
||||||
<CardItem card={card} key={card.id} />
|
<CardItem card={card} key={card.id}/>
|
||||||
))}
|
))}
|
||||||
</Grid>
|
</Grid>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user