[FEAT] Workspace settings gear icon UX improvement (#1254)

take user back to workspace chat from gear icon
This commit is contained in:
Sean Hatfield 2024-05-01 16:22:10 -07:00 committed by GitHub
parent b69bf7cc27
commit 43e54a19dc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -150,9 +150,13 @@ export default function ActiveWorkspaces() {
<Link
type="button"
to={paths.workspace.settings.generalAppearance(
workspace.slug
)}
to={
isInWorkspaceSettings
? paths.workspace.chat(workspace.slug)
: paths.workspace.settings.generalAppearance(
workspace.slug
)
}
onMouseEnter={() => handleGearMouseEnter(workspace.id)}
onMouseLeave={() => handleGearMouseLeave(workspace.id)}
className="rounded-md flex items-center justify-center text-[#A7A8A9] hover:text-white ml-auto"