Skip to content

Instantly share code, notes, and snippets.

@luisramirezdev
Created March 30, 2022 14:25
Show Gist options
  • Save luisramirezdev/620ae7ce92912d9b3c8fd828f406e45f to your computer and use it in GitHub Desktop.
Save luisramirezdev/620ae7ce92912d9b3c8fd828f406e45f to your computer and use it in GitHub Desktop.
{user.role === "user" && (
<div className="header__dashboard-link">
<Link to="/dashboard/user">Tableau de bord</Link>
</div>
<div className="header__dashboard-link">
<Link to="/dashboard/user">Otro menu</Link>
</div>
)}
{user.role === "seller" && (
<div className="header__dashboard-link">
<Link to="/dashboard/user">Tableau de bord</Link>
</div>
<div className="header__dashboard-link">
<Link to="/dashboard/user">Otro menu para seller</Link>
</div>
)}
{user.role === "admin" && (
<div className="header__dashboard-link">
<Link to="/dashboard/user">Tableau de bord</Link>
</div>
<div className="header__dashboard-link">
<Link to="/dashboard/user">Otro menu para admin</Link>
</div>
)}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment