feat: ui changes

This commit is contained in:
Ibrahima G. Coulibaly
2025-02-25 06:17:28 +00:00
parent d4c544609a
commit 484b6e84ee

View File

@@ -6,6 +6,7 @@ import { Link, useNavigate } from 'react-router-dom';
import Typography from '@mui/material/Typography'; import Typography from '@mui/material/Typography';
import Button from '@mui/material/Button'; import Button from '@mui/material/Button';
import { useState } from 'react'; import { useState } from 'react';
import { categoriesColors } from 'config/uiConfig';
type ArrayElement<ArrayType extends readonly unknown[]> = type ArrayElement<ArrayType extends readonly unknown[]> =
ArrayType extends readonly (infer ElementType)[] ? ElementType : never; ArrayType extends readonly (infer ElementType)[] ? ElementType : never;
@@ -74,7 +75,6 @@ const SingleCategory = function ({
</Grid> </Grid>
); );
}; };
const categoriesColors: string[] = ['#8FBC5D', '#3CB6E2', '#FFD400', '#AB6993'];
export default function Categories() { export default function Categories() {
return ( return (
<Grid width={'80%'} container mt={2} spacing={2}> <Grid width={'80%'} container mt={2} spacing={2}>