Skip to content

Commit

Permalink
feat: Allow a tab not to have a label
Browse files Browse the repository at this point in the history
  • Loading branch information
ptbrowne committed Jun 11, 2024
1 parent 7cba90c commit 169b5ad
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/components/chart-selection-tabs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ export const ChartSelectionTabs = () => {
? d.meta.title[locale]
: d.meta.title[defaultLocale] !== ""
? d.meta.title[defaultLocale]
: t({ id: "annotation.add.title" }),
: undefined,
};
});

Expand Down Expand Up @@ -356,7 +356,7 @@ type TabDatum = {
key: string;
chartType: ChartType;
active: boolean;
label: string;
label?: string | undefined;
};

type TabsFixedProps = {
Expand Down Expand Up @@ -757,7 +757,7 @@ const TabsInner = (props: TabsInnerProps) => {
sx={{
px: 0,
flexShrink: 1,
minWidth: 180,
minWidth: d.label ? 180 : 0,
flexBasis: "100%",
}}
label={
Expand Down

0 comments on commit 169b5ad

Please sign in to comment.