* chore: return workspace name and logo in profile settings api * chore: remove unwanted fields * fix: backend * feat: workspace settings * feat: workspce settings + layouting * feat: profile + workspace settings ui * chore: project settings + refactoring * routes * fix: handled no project * fix: css + build * feat: profile settings internal screens upgrade * fix: workspace settings internal screens * fix: external scrolling allowed * fix: css * fix: css * fix: css * fix: preferences settings * fix: css * fix: mobile interface * fix: profile redirections * fix: dark theme * fix: css * fix: css * feat: scroll * fix: refactor * fix: bug fixes * fix: refactor * fix: css * fix: routes * fix: first day of the week * fix: scrolling * fix: refactoring * fix: project -> projects * fix: refactoring * fix: refactor * fix: no authorized view consistency * fix: folder structure * fix: revert * fix: handled redirections * fix: scroll * fix: deleted old routes * fix: empty states * fix: headings * fix: settings description * fix: build --------- Co-authored-by: gakshita <akshitagoyal1516@gmail.com> Co-authored-by: Akshita Goyal <36129505+gakshita@users.noreply.github.com>
29 lines
898 B
TypeScript
29 lines
898 B
TypeScript
import { Button } from "@plane/ui";
|
|
|
|
type Props = {
|
|
title: string | React.ReactNode;
|
|
description?: string;
|
|
appendToRight?: React.ReactNode;
|
|
showButton?: boolean;
|
|
button?: {
|
|
label: string;
|
|
onClick: () => void;
|
|
};
|
|
};
|
|
|
|
export const SettingsHeading = ({ title, description, button, appendToRight, showButton = true }: Props) => (
|
|
<div className="flex items-center justify-between border-b border-custom-border-100 pb-3.5">
|
|
<div className="flex flex-col items-start gap-1">
|
|
{typeof title === "string" ? <h3 className="text-xl font-medium">{title}</h3> : title}
|
|
{description && <div className="text-sm text-custom-text-300">{description}</div>}
|
|
</div>
|
|
{button && showButton && (
|
|
<Button variant="primary" onClick={button.onClick} size="sm">
|
|
{button.label}
|
|
</Button>
|
|
)}
|
|
{appendToRight}
|
|
</div>
|
|
);
|
|
|
|
export default SettingsHeading;
|