@@ -22,6 +22,7 @@ type workspaceCardProps = {
22
22
bookmark : boolean ;
23
23
archeives : boolean ;
24
24
} ;
25
+
25
26
interface members {
26
27
[ username : string ] : string ;
27
28
}
@@ -31,7 +32,6 @@ const WorkspaceCard = (props: workspaceCardProps) => {
31
32
const [ description , setDescription ] = useState < null | string > ( null ) ;
32
33
const [ showPopUp , setShowPopUp ] = useState ( false ) ;
33
34
const token = localStorage . getItem ( 'token' ) ;
34
- const [ fileName , setFileName ] = useState < string | null > ( null ) ;
35
35
const [ imageSrc , setImageSrc ] = useState < string | null > ( null ) ;
36
36
const [ members , setMembers ] = useState < members | null > ( null ) ;
37
37
const [ membersArray , setMembersArray ] = useState < { username :string } [ ] > ( [ ] ) ;
@@ -167,7 +167,7 @@ const WorkspaceCard = (props: workspaceCardProps) => {
167
167
< div className = 'workspace-card' >
168
168
< div className = 'workspace-card-body' >
169
169
< div
170
- className = 'workspace-popup-btn'
170
+ className = 'workspace-popup-btn pointer '
171
171
onClick = { ( ) => setShowPopUp ( showPopUp ? false : true ) }
172
172
>
173
173
{ ! workspaceName . endsWith ( '-userspace' ) && (
@@ -178,24 +178,24 @@ const WorkspaceCard = (props: workspaceCardProps) => {
178
178
) }
179
179
</ div >
180
180
< div className = { showPopUp ? 'workspace-popup' : 'hide' } >
181
- < div className = 'pin' onClick = { HandlePin } >
181
+ < div className = 'pin pointer ' onClick = { HandlePin } >
182
182
{ bookmark ? 'UnPin' : 'Pin' }
183
183
</ div >
184
- < div className = 'archive' onClick = { HandleArchive } >
184
+ < div className = 'archive pointer ' onClick = { HandleArchive } >
185
185
{ archeive ? 'Unarchive' : 'archive' }
186
186
</ div >
187
187
{ members &&
188
188
userContext ?. username &&
189
189
members [ userContext ?. username . toString ( ) ] === 'admin' && (
190
- < div className = 'delete' onClick = { HandleDelete } >
190
+ < div className = 'delete pointer ' onClick = { HandleDelete } >
191
191
delete
192
192
</ div >
193
193
) }
194
194
{ members &&
195
195
userContext ?. username &&
196
196
members [ userContext ?. username . toString ( ) ] === 'admin' && (
197
197
< div
198
- className = 'Edit'
198
+ className = 'Edit pointer '
199
199
onClick = { ( ) => navigate ( `/editWorkspace/${ workspaceName } ` ) }
200
200
>
201
201
edit
@@ -219,7 +219,7 @@ const WorkspaceCard = (props: workspaceCardProps) => {
219
219
? "USER's WORKSPACE"
220
220
: workspaceName }
221
221
</ div >
222
- < div className = 'members-view-container' onClick = { ( ) => navigate ( `/workspaceMembers/${ workspaceName } ` ) } >
222
+ < div className = 'members-view-container pointer ' onClick = { ( ) => navigate ( `/workspaceMembers/${ workspaceName } ` ) } >
223
223
< div className = 'workspace-members-imgs' >
224
224
< div className = 'image-stack' >
225
225
{ membersArray . length > 0 ? (
@@ -258,6 +258,7 @@ const WorkspaceCard = (props: workspaceCardProps) => {
258
258
< div className = 'workspace-details-btn' >
259
259
< img
260
260
src = { rightNavbtn }
261
+ className = 'pointer'
261
262
onClick = { ( ) => navigate ( `/workspace/${ workspaceName } ` ) }
262
263
alt = ''
263
264
/>
0 commit comments