generated from xgeekshq/oss-template
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: frontend done for search user (#707)
- Loading branch information
Showing
3 changed files
with
43 additions
and
19 deletions.
There are no files selected for viewing
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
31 changes: 16 additions & 15 deletions
31
frontend/src/components/Users/UsersList/partials/CardUser/EditUser.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 |
---|---|---|
@@ -1,26 +1,27 @@ | ||
import Icon from '@/components/icons/Icon'; | ||
import Flex from '@/components/Primitives/Flex'; | ||
import Tooltip from '@/components/Primitives/Tooltip'; | ||
import { User } from '@/types/user/user'; | ||
import Link from 'next/link'; | ||
|
||
type EditUserProps = { user: User }; | ||
|
||
const EditUser: React.FC<EditUserProps> = ({ user }) => ( | ||
<Tooltip content="Edit User"> | ||
<Flex pointer> | ||
<Link href={`/users/${user._id}`}> | ||
<Icon | ||
name="edit" | ||
css={{ | ||
color: '$primary400', | ||
width: '$20', | ||
height: '$20', | ||
}} | ||
/> | ||
</Link> | ||
</Flex> | ||
</Tooltip> | ||
<Flex pointer> | ||
<Link href={`/users/${user._id}`}> | ||
<Icon | ||
name="edit" | ||
css={{ | ||
color: '$primary400', | ||
width: '$20', | ||
height: '$20', | ||
'&:hover': { | ||
backgroundColor: '#d7e0e0', | ||
borderRadius: '1em', | ||
}, | ||
}} | ||
/> | ||
</Link> | ||
</Flex> | ||
); | ||
|
||
export default EditUser; |
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