Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
import { createContext } from 'react';

export type DateRangePreset =
| 'today'
| 'current-month'
| 'custom'
| 'last-7-days'
| 'last-2-weeks';
'today' | 'current-month' | 'custom' | 'last-7-days' | 'last-2-weeks';

export type DateRange = {
from?: Date;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ export const PhoneNumberProvider: FC<Props> = ({
}),
[],
);
const [selectedCountry, setSelectedCuntry] = useState<Country>(
() => countriesList.find(({ code }) => code === defaultCountryCode)!,
const [selectedCountry, setSelectedCuntry] = useState<Country>(() =>
countriesList.find(({ code }) => code === defaultCountryCode)!,
);

const [value, setValue] = useState<string>(() => {
Expand Down
3 changes: 1 addition & 2 deletions lib/components/PieChart/PieChart.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,5 @@ export type Props = {
* - No title and no subtitle
* - Title with optional subtitle
*/ & (
| { title?: undefined; subtitle?: never }
| { title: string; subtitle?: string }
{ title?: undefined; subtitle?: never } | { title: string; subtitle?: string }
);
3 changes: 1 addition & 2 deletions lib/components/VirtualizedTable/contexts/table.provider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -487,8 +487,7 @@ export const TableProvider = <TData extends RowData = RowData>({
onSelectTimeFilter,
onSorting: setSortedData,
renderExpandedRow: renderExpandedRow as
| ((data: RowData) => ReactNode)
| undefined,
((data: RowData) => ReactNode) | undefined,
}}
>
{children}
Expand Down
6 changes: 1 addition & 5 deletions lib/domain/theme.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,2 @@
export type Theme =
| 'kubefirst'
| 'light'
| 'kubefirst-dark'
| 'dark'
| undefined;
'kubefirst' | 'light' | 'kubefirst-dark' | 'dark' | undefined;
Loading
Loading