File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
site/src/pages/WorkspacesPage Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change 1
- import { type ReactNode , useState , ReactElement } from "react" ;
1
+ import { type PropsWithChildren , type ReactNode , useState } from "react" ;
2
2
import { useOrganizationId } from "hooks" ;
3
3
import { Language } from "./WorkspacesPageView" ;
4
4
@@ -114,11 +114,7 @@ function WorkspaceResultsRow({ template }: { template: Template }) {
114
114
) ;
115
115
}
116
116
117
- type WorkspacesButtonProps = {
118
- children : string | ReactElement ;
119
- } ;
120
-
121
- export function WorkspacesButton ( { children } : WorkspacesButtonProps ) {
117
+ export function WorkspacesButton ( { children } : PropsWithChildren ) {
122
118
const organizationId = useOrganizationId ( ) ;
123
119
const templatesQuery = useQuery ( templates ( organizationId ) ) ;
124
120
const theme = useTheme ( ) ;
You can’t perform that action at this time.
0 commit comments