Skip to content

Commit 430e30c

Browse files
committed
fix: simplify button prop types
1 parent 99f2656 commit 430e30c

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

site/src/pages/WorkspacesPage/WorkspacesButton.tsx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { type ReactNode, useState, ReactElement } from "react";
1+
import { type PropsWithChildren, type ReactNode, useState } from "react";
22
import { useOrganizationId } from "hooks";
33
import { Language } from "./WorkspacesPageView";
44

@@ -114,11 +114,7 @@ function WorkspaceResultsRow({ template }: { template: Template }) {
114114
);
115115
}
116116

117-
type WorkspacesButtonProps = {
118-
children: string | ReactElement;
119-
};
120-
121-
export function WorkspacesButton({ children }: WorkspacesButtonProps) {
117+
export function WorkspacesButton({ children }: PropsWithChildren) {
122118
const organizationId = useOrganizationId();
123119
const templatesQuery = useQuery(templates(organizationId));
124120
const theme = useTheme();

0 commit comments

Comments
 (0)