Skip to content

Commit

Permalink
rfac: project card pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
yp969803 committed Feb 16, 2024
1 parent 32cba8d commit d369d4b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
7 changes: 4 additions & 3 deletions src/features/workspace/components/projectCard/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,13 @@
height: 100%;
min-height: 257px;
padding: 1em;
}

.projectcard:hover {
cursor: pointer;
}

// .projectcard:hover {
// cursor: pointer;
// }

.projectcard h1 {
color: #ededed;
margin-bottom: 0.2em;
Expand Down
15 changes: 8 additions & 7 deletions src/features/workspace/components/projectCard/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ const ProjectCard: React.FC<Props> = ({
<>

<div
className='workspace-popup-btn'
className='workspace-popup-btn pointer'
onClick={() => setShowPopUp(showPopUp ? false : true)}
>
<img
Expand All @@ -152,19 +152,19 @@ const ProjectCard: React.FC<Props> = ({
/>
</div>
<div className={showPopUp ? 'workspace-popup' : 'hide'}>
<div className='pin' onClick={PinHandler}>
<div className='pin pointer' onClick={PinHandler}>
{pin ? 'Unpin' : 'Pin'}
</div>
<div className='archive' onClick={ArchiveHandler}>
<div className='archive pointer' onClick={ArchiveHandler}>
{archive ? 'Unarchive' : 'Archive'}
</div>
<div
className='pin'
className='pin pointer'
onClick={() => navigate(`/editProject/${orgName}/${projectName}`)}
>
Edit
</div>
<div className='delete' onClick={DeleteHandler}>
<div className='delete pointer' onClick={DeleteHandler}>
Delete
</div>
</div>
Expand All @@ -187,7 +187,7 @@ const ProjectCard: React.FC<Props> = ({

{orgName && !orgName.endsWith('-userspace') && (
<div
className='image-stack'
className='image-stack pointer'
onClick={() => navigate(`/projectMembers/${orgName}/${projectName}`)}
>
{projectMembers && projectMembers.length > 0 ? (
Expand All @@ -204,9 +204,10 @@ const ProjectCard: React.FC<Props> = ({
</div>
)}
{orgName && !orgName.endsWith('-userspace') && (
<div className='workspace-details-btn'>
<div className='workspace-details-btn '>
<img
src={rightNavbtn}
className='pointer'
onClick={() => navigate(`/project/${orgName}/${projectName}`)}
alt=''
/>
Expand Down

0 comments on commit d369d4b

Please sign in to comment.