-
Notifications
You must be signed in to change notification settings - Fork 10.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore:
UserCard
focus improvements (#31812)
- Loading branch information
1 parent
7d331f1
commit f577751
Showing
38 changed files
with
247 additions
and
236 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
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
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
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
23 changes: 0 additions & 23 deletions
23
apps/meteor/client/components/UserCard/UserCardContainer.tsx
This file was deleted.
Oops, something went wrong.
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,30 @@ | ||
import { Box } from '@rocket.chat/fuselage'; | ||
import type { ComponentProps } from 'react'; | ||
import React, { useRef } from 'react'; | ||
import type { AriaDialogProps } from 'react-aria'; | ||
import { useDialog } from 'react-aria'; | ||
|
||
type UserCardDialogProps = AriaDialogProps & ComponentProps<typeof Box>; | ||
|
||
const UserCardDialog = (props: UserCardDialogProps) => { | ||
const ref = useRef(null); | ||
const { dialogProps } = useDialog(props, ref); | ||
|
||
return ( | ||
<Box | ||
ref={ref} | ||
minHeight='x214' | ||
rcx-user-card | ||
bg='surface' | ||
elevation='2' | ||
p={24} | ||
display='flex' | ||
borderRadius='x4' | ||
width='439px' | ||
{...props} | ||
{...dialogProps} | ||
/> | ||
); | ||
}; | ||
|
||
export default UserCardDialog; |
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
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
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
Oops, something went wrong.