RohanNero / block3d

An open-source authentication toolkit designed to streamline access control within Nextjs dapps.
https://block3d.gitbook.io/block3d
GNU General Public License v3.0
1 stars 0 forks source link

Remove necessary ties to Nextjs #2

Closed RohanNero closed 3 months ago

RohanNero commented 4 months ago

Overview

Block3d was built using Nextjs, however, I want to ensure this tool can be used across multiple frontend development frameworks.

Currently, we rely on

Solution

  1. Remove next/image dependency by replacing the <Image/> component with an equivalent from another library.
  2. Remove next/navigation dependency by replacing the usePathName() hook with an equivalent from another library.

I think we can leave the Block3dTable as is since we can use the @nextui-org library elsewhere, but I am not 100% sure.

RohanNero commented 3 months ago
  1. Using HTML <img/> tag
  2. Using window.location.pathname