diff --git a/packages/admin/package.json b/packages/admin/package.json
index 2bff7de6882..836f4a821a6 100644
--- a/packages/admin/package.json
+++ b/packages/admin/package.json
@@ -45,9 +45,11 @@
"@babel/preset-react": "^7.12.5",
"@reach/router": "^1.3.4",
"@rematch/core": "^1.4.0",
+ "@svgr/webpack": "^5.5.0",
"babel-loader": "^8.2.1",
"classnames": "^2.2.6",
"css-loader": "^5.0.1",
+ "file-loader": "^6.2.0",
"html-webpack-plugin": "^4.5.0",
"marked": "^1.2.3",
"md5": "^2.3.0",
diff --git a/packages/admin/src/components/icon/github.svg b/packages/admin/src/components/icon/github.svg
new file mode 100644
index 00000000000..95a1743dd5e
--- /dev/null
+++ b/packages/admin/src/components/icon/github.svg
@@ -0,0 +1,3 @@
+
\ No newline at end of file
diff --git a/packages/admin/src/pages/profile/index.js b/packages/admin/src/pages/profile/index.js
index 6e27edad149..ad18ac5bca7 100644
--- a/packages/admin/src/pages/profile/index.js
+++ b/packages/admin/src/pages/profile/index.js
@@ -1,8 +1,11 @@
import React, { useState } from 'react';
+import cls from 'classnames';
import { useDispatch, useSelector } from 'react-redux';
import Header from '../../components/Header';
import { updateProfile } from '../../services/user';
+import { ReactComponent as GithubIcon } from '../../components/icon/github.svg';
+
export default function() {
const [isPasswordUpdating, setPasswordUpdating] = useState(false);
const [isProfileUpdating, setProfileUpdating] = useState(false);
@@ -41,6 +44,13 @@ export default function() {
setPasswordUpdating(false);
}
+
+ let baseUrl = 'http://localhost:3000/'; globalThis.serverURL;
+ if(!baseUrl) {
+ const match = location.pathname.match(/(.*?\/)ui/);
+ baseUrl = match ? match[1] : '/';
+ }
+
return (
<>
@@ -96,6 +106,25 @@ export default function() {
+
+