Skip to content

A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.

fix: Optimize the export method of internal components

shuai5ad97801b0aa
diff --git a/ui/src/pages/Users/Notifications/components/index.ts b/ui/src/pages/Users/Notifications/components/index.ts
new file mode 100644
index 00000000..f8183485
--- /dev/null
+++ b/ui/src/pages/Users/Notifications/components/index.ts
@@ -0,0 +1,4 @@
+import Inbox from './Inbox';
+import Achievements from './Achievements';
+
+export { Inbox, Achievements };
diff --git a/ui/src/pages/Users/Notifications/index.tsx b/ui/src/pages/Users/Notifications/index.tsx
index 28ca9dd1..4b7fc9ec 100644
--- a/ui/src/pages/Users/Notifications/index.tsx
+++ b/ui/src/pages/Users/Notifications/index.tsx
@@ -33,8 +33,7 @@ import {
} from '@/services';
import { floppyNavigation } from '@/utils';
-import Inbox from './components/Inbox';
-import Achievements from './components/Achievements';
+import { Inbox, Achievements } from './components';
import './index.scss';
const PAGE_SIZE = 10;