-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(frontend): Added new view workspace members button - needs imple…
…mented in backend [2024-11-23]
- Loading branch information
1 parent
2ecce74
commit 860e6a2
Showing
2 changed files
with
58 additions
and
1 deletion.
There are no files selected for viewing
43 changes: 43 additions & 0 deletions
43
gridwalk-ui/src/app/workspace/[workspaceId]/viewMembersModal.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
"use client"; | ||
import React from "react"; | ||
|
||
interface ViewWorkspaceMemberModalProps { | ||
isOpen: boolean; | ||
onClose: () => void; | ||
} | ||
|
||
export const ViewWorkspaceMemberModal: React.FC< | ||
ViewWorkspaceMemberModalProps | ||
> = ({ isOpen, onClose }) => { | ||
if (!isOpen) return null; | ||
|
||
return ( | ||
<div className="fixed inset-0 bg-black/50 flex items-center justify-center z-50 p-4"> | ||
<div className="bg-white rounded-lg p-6 w-full max-w-md relative"> | ||
<div className="flex justify-between items-center mb-4"> | ||
<h2 className="text-xl font-bold text-gray-900"> | ||
View Workspace Member | ||
</h2> | ||
<button | ||
onClick={onClose} | ||
className="text-gray-500 hover:text-gray-700" | ||
> | ||
✕ | ||
</button> | ||
</div> | ||
|
||
{/* Content will be added here in the future */} | ||
<div className="py-4">{/* Placeholder for future content */}</div> | ||
|
||
<div className="flex justify-end"> | ||
<button | ||
onClick={onClose} | ||
className="px-4 py-2 text-gray-700 bg-gray-100 rounded-md hover:bg-gray-200" | ||
> | ||
Close | ||
</button> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters