mirror of
https://github.com/actualbudget/actual.git
synced 2026-07-22 15:19:25 -05:00
- Removed temporary ignores for the docs package. - Updated linting rules for the docs package to improve code quality. - Refactored variable declarations from `let` to `const` for better consistency. - Added a new configuration file for oxlint in the docs directory. - Made minor formatting adjustments across various components.
26 lines
603 B
React
26 lines
603 B
React
import React from 'react';
|
|
|
|
export default function APIList({ title, sections }) {
|
|
return (
|
|
<div className="mt-4">
|
|
<div className="">{title}</div>
|
|
|
|
<ul>
|
|
{sections.map(name => {
|
|
const id = name.replace(/[ -]/g, '-').toLowerCase();
|
|
return (
|
|
<li
|
|
key={id}
|
|
className="list-none m-0 mt-1 pl-4 text-sm link-color-inherit text-gray-700"
|
|
>
|
|
<a className="no-underline" href={'#' + id}>
|
|
{name}
|
|
</a>
|
|
</li>
|
|
);
|
|
})}
|
|
</ul>
|
|
</div>
|
|
);
|
|
}
|