chore: user profile issue improvement (#2679)

* fix: user profile filters z-index

* chore: user profile issue state group heading fix

* fix: build error
This commit is contained in:
Anmol Singh Bhatia 2023-11-07 15:58:19 +05:30 committed by GitHub
parent 93d03f82b4
commit f30b16e9d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -4,6 +4,8 @@ import { observer } from "mobx-react-lite";
import { HeaderGroupByCard } from "./group-by-card"; import { HeaderGroupByCard } from "./group-by-card";
// ui // ui
import { StateGroupIcon } from "@plane/ui"; import { StateGroupIcon } from "@plane/ui";
// helpers
import { capitalizeFirstLetter } from "helpers/string.helper";
export interface IStateGroupHeader { export interface IStateGroupHeader {
column_id: string; column_id: string;
@ -27,7 +29,7 @@ export const StateGroupHeader: FC<IStateGroupHeader> = observer((props) => {
{stateGroup && ( {stateGroup && (
<HeaderGroupByCard <HeaderGroupByCard
icon={<Icon stateGroup={stateGroup?.key} />} icon={<Icon stateGroup={stateGroup?.key} />}
title={stateGroup?.key || ""} title={capitalizeFirstLetter(stateGroup?.key) || ""}
count={issues_count} count={issues_count}
issuePayload={{}} issuePayload={{}}
/> />

View File

@ -46,7 +46,7 @@ export const ProfileNavbar: React.FC<Props> = (props) => {
const tabsList = isAuthorized ? [...viewerTabs, ...adminTabs] : viewerTabs; const tabsList = isAuthorized ? [...viewerTabs, ...adminTabs] : viewerTabs;
return ( return (
<div className="sticky -top-0.5 z-[1] md:static px-4 sm:px-5 flex items-center justify-between gap-4 bg-custom-background-100 border-b border-custom-border-300"> <div className="sticky -top-0.5 z-10 md:static px-4 sm:px-5 flex items-center justify-between gap-4 bg-custom-background-100 border-b border-custom-border-300">
<div className="flex items-center overflow-x-scroll"> <div className="flex items-center overflow-x-scroll">
{tabsList.map((tab) => ( {tabsList.map((tab) => (
<Link key={tab.route} href={`/${workspaceSlug}/profile/${userId}/${tab.route}`}> <Link key={tab.route} href={`/${workspaceSlug}/profile/${userId}/${tab.route}`}>