Skip to content

Commit

Permalink
Change wording for headers in new tooling page (json-schema-org#919)
Browse files Browse the repository at this point in the history
* Change wording for headers

* Set singular for grouping types
  • Loading branch information
benjagm authored Sep 4, 2024
1 parent 6ad6a9d commit c99f11b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
4 changes: 2 additions & 2 deletions pages/tools/components/GroupByMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ const GroupByMenu = ({ transform, setTransform }: GroupByMenuProps) => {
accessorKey: 'none',
},
{
label: 'Tooling Types',
label: 'Tooling Type',
accessorKey: 'toolingTypes',
},
{
label: 'Languages',
label: 'Language',
accessorKey: 'languages',
},
];
Expand Down
6 changes: 3 additions & 3 deletions pages/tools/components/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ export default function Sidebar({
const filterFormRef = useRef<HTMLFormElement>(null);

const filters = [
{ label: 'Languages', accessorKey: 'languages' },
{ label: 'Drafts', accessorKey: 'drafts' },
{ label: 'Tooling Types', accessorKey: 'toolingTypes' },
{ label: 'Language', accessorKey: 'languages' },
{ label: 'Dialect', accessorKey: 'drafts' },
{ label: 'Tooling Type', accessorKey: 'toolingTypes' },
{ label: 'License', accessorKey: 'licenses' },
];

Expand Down
1 change: 0 additions & 1 deletion pages/tools/components/ToolingDetailModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,6 @@ export default function ToolingDetailModal({
<h3 className='text-lg font-semibold'>Supported Dialects</h3>
{tool.supportedDialects.draft && (
<div>
<h4 className='text-[14px] font-semibold'>Draft:</h4>
<ul className='list-none list-inside'>
{tool.supportedDialects.draft.map((draft) => (
<Badge key={draft}>{draft}</Badge>
Expand Down
2 changes: 1 addition & 1 deletion pages/tools/components/ToolingTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ const ToolingTable = ({
style: { flexBasis: '20%', flexGrow: 1 },
}}
>
Drafts
Dialects
</TableColumnHeader>
<TableSortableColumnHeader
sortBy='license'
Expand Down

0 comments on commit c99f11b

Please sign in to comment.