minor fix notif

This commit is contained in:
2025-12-18 12:36:46 +07:00
parent 3a4b0f0748
commit 1ce922ff4c
3 changed files with 5 additions and 5 deletions

View File

@@ -36,7 +36,7 @@ import IndexNotification from './pages/notification/IndexNotification';
import IndexRole from './pages/role/IndexRole';
import IndexUser from './pages/user/IndexUser';
import IndexContact from './pages/contact/IndexContact';
import DetailNotificationTab from './pages/detailNotification/IndexDetailNotification';
import DetailNotificationTab from './pages/notificationDetail/IndexNotificationDetail';
import IndexVerificationSparepart from './pages/verificationSparepart/IndexVerificationSparepart';
import SvgTest from './pages/home/SvgTest';
@@ -64,7 +64,7 @@ const App = () => {
<Route path="/signup" element={<SignUp />} />
<Route path="/svg" element={<SvgTest />} />
<Route
path="/detail-notification/:notificationId"
path="/notification-detail/:notificationId"
element={<DetailNotificationTab />}
/>
<Route

View File

@@ -464,7 +464,7 @@ const ListNotification = memo(function ListNotification(props) {
}}
/>
<RouterLink
to={`/detail-notification/${
to={`/notification-detail/${
notification.id.split('-')[1]
}`}
target="_blank"

View File

@@ -81,7 +81,7 @@ const getIconAndColor = (type) => {
}
};
const DetailNotificationTab = () => {
const NotificationDetailTab = () => {
const { notificationId } = useParams(); // Mungkin perlu disesuaikan jika route berbeda
const navigate = useNavigate();
const [notification, setNotification] = useState(null);
@@ -408,4 +408,4 @@ const DetailNotificationTab = () => {
);
};
export default DetailNotificationTab;
export default NotificationDetailTab;