lavoce #27

Merged
bragaz_rexita merged 42 commits from lavoce into main 2025-12-22 09:28:35 +00:00
3 changed files with 5 additions and 5 deletions
Showing only changes of commit 1ce922ff4c - Show all commits

View File

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

View File

@@ -464,7 +464,7 @@ const ListNotification = memo(function ListNotification(props) {
}} }}
/> />
<RouterLink <RouterLink
to={`/detail-notification/${ to={`/notification-detail/${
notification.id.split('-')[1] notification.id.split('-')[1]
}`} }`}
target="_blank" 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 { notificationId } = useParams(); // Mungkin perlu disesuaikan jika route berbeda
const navigate = useNavigate(); const navigate = useNavigate();
const [notification, setNotification] = useState(null); const [notification, setNotification] = useState(null);
@@ -408,4 +408,4 @@ const DetailNotificationTab = () => {
); );
}; };
export default DetailNotificationTab; export default NotificationDetailTab;