remove color chip from Project and Label

https://github.com/donetick/frontend/issues/57
This commit is contained in:
Mo Tarbin
2026-02-05 09:23:14 -05:00
parent c20e8d1aea
commit ed9f04332e
2 changed files with 2 additions and 37 deletions

View File

@@ -14,7 +14,7 @@ import { useEffect, useRef, useState } from 'react'
import LabelModal from '../Modals/Inputs/LabelModal'
// import { useMutation, useQueryClient } from '@tanstack/react-query'
import { Add, ColorLens } from '@mui/icons-material'
import { Add } from '@mui/icons-material'
import { useQueryClient } from '@tanstack/react-query'
import { useUserProfile } from '../../queries/UserQueries'
import LABEL_COLORS, {
@@ -416,23 +416,6 @@ const LabelCard = ({ label, onEditClick, onDeleteClick, currentUserId }) => {
{/* Color Info */}
<Box sx={{ display: 'flex', alignItems: 'center', gap: 0.5 }}>
{label.color && (
<Chip
size='sm'
variant='soft'
startDecorator={<ColorLens />}
sx={{
fontSize: 10,
height: 18,
px: 0.75,
bgcolor: `${label.color}20`,
color: label.color,
border: `1px solid ${label.color}30`,
}}
>
{getColorName(label.color)}
</Chip>
)}
{!isOwnedByCurrentUser && (
<Chip
size='sm'

View File

@@ -14,7 +14,7 @@ import { useEffect, useRef, useState } from 'react'
import { useNavigate } from 'react-router-dom'
import ProjectModal from '../Modals/Inputs/ProjectModal'
import { Add, FolderOpen, Task } from '@mui/icons-material'
import { Add, Task } from '@mui/icons-material'
import { useQueryClient } from '@tanstack/react-query'
import { useChores } from '../../queries/ChoreQueries'
import { useUserProfile } from '../../queries/UserQueries'
@@ -493,24 +493,6 @@ const ProjectCard = ({
{taskCount} tasks
</Chip>
{project.color && (
<Chip
size='sm'
variant='soft'
startDecorator={<FolderOpen />}
sx={{
fontSize: 10,
height: 18,
px: 0.75,
bgcolor: `${project.color}20`,
color: project.color,
border: `1px solid ${project.color}30`,
}}
>
{getColorName(project.color)}
</Chip>
)}
{!isOwnedByCurrentUser && !isDefaultProject && (
<Chip
size='sm'