@refinedev/antd 5.0.0 → 5.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@refinedev/antd",
3
- "version": "5.0.0",
3
+ "version": "5.1.1",
4
4
  "description": "refine is a React-based framework for building internal tools, rapidly. It ships with Ant Design System, an enterprise-level UI toolkit.",
5
5
  "private": false,
6
6
  "main": "dist/index.js",
@@ -23,9 +23,9 @@
23
23
  "react-dom": "^17.0.0 || ^18.0.0"
24
24
  },
25
25
  "devDependencies": {
26
- "@refinedev/cli": "^2.0.0",
27
- "@refinedev/ui-tests": "^1.0.0",
28
- "@refinedev/core": "^4.0.0",
26
+ "@refinedev/cli": "^2.1.0",
27
+ "@refinedev/ui-tests": "^1.1.0",
28
+ "@refinedev/core": "^4.1.3",
29
29
  "@esbuild-plugins/node-resolve": "^0.1.4",
30
30
  "@testing-library/jest-dom": "^5.16.4",
31
31
  "@testing-library/react": "^13.1.1",
@@ -49,7 +49,7 @@
49
49
  "dependencies": {
50
50
  "@ant-design/icons": "^5.0.1",
51
51
  "@ant-design/pro-layout": "7.8.3",
52
- "@refinedev/ui-types": "^1.0.0",
52
+ "@refinedev/ui-types": "^1.1.0",
53
53
  "@tanstack/react-query": "^4.10.1",
54
54
  "antd": "^5.0.5",
55
55
  "dayjs": "^1.10.7",
@@ -1,6 +1,6 @@
1
+ import { useActiveAuthProvider, useGetIdentity } from "@refinedev/core";
2
+ import { Avatar, Layout as AntdLayout, Space, Typography } from "antd";
1
3
  import React from "react";
2
- import { Layout as AntdLayout, Typography, Avatar, Space } from "antd";
3
- import { useGetIdentity, useActiveAuthProvider } from "@refinedev/core";
4
4
  import { RefineLayoutHeaderProps } from "../types";
5
5
  const { Text } = Typography;
6
6
 
@@ -22,15 +22,13 @@ export const Header: React.FC<RefineLayoutHeaderProps> = () => {
22
22
  height: "64px",
23
23
  }}
24
24
  >
25
- <Space>
26
- {user.name && (
27
- <Text ellipsis strong>
25
+ <Space style={{ marginLeft: "8px" }}>
26
+ {user?.name && (
27
+ <Text style={{ color: "white" }} strong>
28
28
  {user.name}
29
29
  </Text>
30
30
  )}
31
- {user.avatar && (
32
- <Avatar size="large" src={user?.avatar} alt={user?.name} />
33
- )}
31
+ {user?.avatar && <Avatar src={user?.avatar} alt={user?.name} />}
34
32
  </Space>
35
33
  </AntdLayout.Header>
36
34
  ) : null;