79415533

Date: 2025-02-05 16:56:31
Score: 0.5
Natty:
Report link

With the help of above comments, I ended up doing:

export default AdminContainer() {
    const router = useRouter();

    useEffect(()=>{
      router.push('/admin/pending')
    }, [router]);

  return null;
}

Any other approach and suggestions are welcome.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
Posted by: juztcode