mirror of
https://github.com/documenso/documenso.git
synced 2025-11-10 04:22:32 +10:00
**Description:** - Updated mobile header with respect to latest designs <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Added a new `showText` property to the `MenuSwitcher` component to control text visibility. - Added a `textSectionClassName` property to the `AvatarWithText` component for conditional text section styling. - Updated the `CommandDialog` and `DialogContent` components with new positioning and styling properties. - **Style Updates** - Adjusted text size responsiveness in the `Hero` component for various screen sizes. - Modified text truncation and input styling in the `Widget` component. - Changed the width of the `SheetContent` element in `MobileNavigation` and adjusted footer layout. - **Documentation** - Added instructions for certificate placement in `SIGNING.md`. - **Refactor** - Standardized type imports across various components and utilities for improved type checking. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Signed-off-by: Adithya Krishna <adithya@documenso.com> Signed-off-by: Adithya Krishna <aadithya794@gmail.com> Co-authored-by: David Nguyen <davidngu28@gmail.com>
51 lines
1.6 KiB
TypeScript
51 lines
1.6 KiB
TypeScript
import type { HTMLAttributes } from 'react';
|
|
|
|
import { cn } from '@documenso/ui/lib/utils';
|
|
import {
|
|
Table,
|
|
TableBody,
|
|
TableCell,
|
|
TableHead,
|
|
TableHeader,
|
|
TableRow,
|
|
} from '@documenso/ui/primitives/table';
|
|
|
|
import { SALARY_BANDS } from '~/app/(marketing)/open/data';
|
|
|
|
export type SalaryBandsProps = HTMLAttributes<HTMLDivElement>;
|
|
|
|
export const SalaryBands = ({ className, ...props }: SalaryBandsProps) => {
|
|
return (
|
|
<div className={cn('flex flex-col', className)} {...props}>
|
|
<h3 className="px-4 text-lg font-semibold">Global Salary Bands</h3>
|
|
|
|
<div className="border-border mt-2.5 flex-1 rounded-2xl border shadow-sm hover:shadow">
|
|
<Table>
|
|
<TableHeader>
|
|
<TableRow>
|
|
<TableHead className="w-[200px]">Title</TableHead>
|
|
<TableHead>Seniority</TableHead>
|
|
<TableHead className="w-[100px] text-right">Salary</TableHead>
|
|
</TableRow>
|
|
</TableHeader>
|
|
<TableBody>
|
|
{SALARY_BANDS.map((band, index) => (
|
|
<TableRow key={index}>
|
|
<TableCell className="font-medium">{band.title}</TableCell>
|
|
<TableCell>{band.seniority}</TableCell>
|
|
<TableCell className="text-right">
|
|
{band.salary.toLocaleString('en-US', {
|
|
style: 'currency',
|
|
currency: 'USD',
|
|
maximumFractionDigits: 0,
|
|
})}
|
|
</TableCell>
|
|
</TableRow>
|
|
))}
|
|
</TableBody>
|
|
</Table>
|
|
</div>
|
|
</div>
|
|
);
|
|
};
|