Skip to content

Commit

Permalink
Merge pull request #2280 from invoiceninja/GH-2153
Browse files Browse the repository at this point in the history
Fixes for mobile navigation
  • Loading branch information
beganovich authored Dec 24, 2024
2 parents 9807811 + ef1947b commit a4ea989
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/Tabs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,12 @@ export function Tabs(props: Props) {
name="tabs"
className="block w-full pl-3 pr-10 py-2 text-base border-gray-300 focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm rounded-md"
defaultValue={props.tabs.find((tab) => tab)?.name}
onChange={(e) => navigate(e.currentTarget.value)}
>
{props.tabs.map(
(tab) =>
(typeof tab.enabled === 'undefined' || tab.enabled) && (
<option key={tab.name}>{tab.formatName?.() || tab.name}</option>
<option key={tab.name} value={tab.href}>{tab.formatName?.() || tab.name}</option>
)
)}
</select>
Expand Down
1 change: 1 addition & 0 deletions src/pages/settings/company/CompanyDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ export function CompanyDetails() {
docsLink="en/basic-settings/#company_details"
>
<Tabs tabs={tabs} className="mt-6" />

<div className="my-4">
<Outlet />
</div>
Expand Down

0 comments on commit a4ea989

Please sign in to comment.