mirror of
https://github.com/ant-design/ant-design.git
synced 2026-02-09 02:49:18 +08:00
chore: improve code style (#55720)
* chore: improve code style * Apply suggestion from @gemini-code-assist[bot] Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> Signed-off-by: 遇见同学 <1875694521@qq.com> --------- Signed-off-by: 遇见同学 <1875694521@qq.com> Co-authored-by: 遇见同学 <1875694521@qq.com> Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
This commit is contained in:
@@ -84,8 +84,8 @@ const Drawer: React.FC<DrawerProps> & {
|
||||
...rest
|
||||
} = props;
|
||||
|
||||
let ariaId: string | undefined = useId();
|
||||
ariaId = rest.title ? ariaId : undefined;
|
||||
const id = useId();
|
||||
const ariaId = rest.title ? id : undefined;
|
||||
|
||||
const {
|
||||
getPopupContainer,
|
||||
|
||||
Reference in New Issue
Block a user