Skip to content

Commit 4f9252e

Browse files
committed
yay
1 parent 2c3fb86 commit 4f9252e

File tree

3 files changed

+12
-13
lines changed

3 files changed

+12
-13
lines changed

site/src/components/ActiveUserChart/ActiveUserChart.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import {
2121
HelpTooltipText,
2222
} from "components/HelpTooltip/HelpTooltip";
2323
import dayjs from "dayjs";
24-
import { FC } from "react";
24+
import { type FC } from "react";
2525
import { Line } from "react-chartjs-2";
2626
import annotationPlugin from "chartjs-plugin-annotation";
2727

site/src/components/Alert/Alert.tsx

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
1-
import { useState, FC, ReactNode, PropsWithChildren } from "react";
1+
import {
2+
useState,
3+
type FC,
4+
type ReactNode,
5+
type PropsWithChildren,
6+
} from "react";
27
import Collapse from "@mui/material/Collapse";
38
// eslint-disable-next-line no-restricted-imports -- It is the base component
4-
import MuiAlert, { AlertProps as MuiAlertProps } from "@mui/material/Alert";
9+
import MuiAlert, {
10+
type AlertProps as MuiAlertProps,
11+
} from "@mui/material/Alert";
512
import Button from "@mui/material/Button";
613

714
export type AlertProps = MuiAlertProps & {

site/src/components/SettingsLayout/Section.tsx

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import Typography from "@mui/material/Typography";
2-
import { type FC, type ReactNode, type PropsWithChildren } from "react";
3-
import { SectionAction } from "./SectionAction";
2+
import { type FC, type ReactNode } from "react";
43
import { type Interpolation, type Theme } from "@emotion/react";
54

65
type SectionLayout = "fixed" | "fluid";
@@ -17,11 +16,7 @@ export interface SectionProps {
1716
children?: ReactNode;
1817
}
1918

20-
type SectionFC = FC<PropsWithChildren<SectionProps>> & {
21-
Action: typeof SectionAction;
22-
};
23-
24-
export const Section: SectionFC = ({
19+
export const Section: FC<SectionProps> = ({
2520
id,
2621
title,
2722
description,
@@ -59,9 +54,6 @@ export const Section: SectionFC = ({
5954
);
6055
};
6156

62-
// Sub-components
63-
Section.Action = SectionAction;
64-
6557
const styles = {
6658
header: {
6759
marginBottom: 24,

0 commit comments

Comments
 (0)