Skip to content

Commit

Permalink
fix types
Browse files Browse the repository at this point in the history
(cherry picked from commit a536fcc)
(cherry picked from commit df16922)
(cherry picked from commit 290f563)
(cherry picked from commit 6947606)
  • Loading branch information
csouchet committed Jan 15, 2025
1 parent 94f1d7d commit a384c9c
Show file tree
Hide file tree
Showing 33 changed files with 35 additions and 11 deletions.
1 change: 1 addition & 0 deletions src/components/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
*/

import type {JSX} from 'react';
import React from 'react';

// @mui material components
Expand Down
1 change: 1 addition & 0 deletions src/components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import type {JSX} from 'react';
import React from 'react';

import type { SvgIcon } from '@mui/material';
Expand Down
2 changes: 1 addition & 1 deletion src/components/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

import type { PropsWithChildren } from 'react';
import type {PropsWithChildren, JSX} from 'react';
import React, { useEffect } from 'react';

import { CssBaseline, ThemeProvider } from '@mui/material';
Expand Down
1 change: 1 addition & 0 deletions src/components/PageWithPosts.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import type {JSX} from "react";
import * as React from 'react';

import type { PostContent, FooterContent, HeaderContent } from '../components';
Expand Down
1 change: 1 addition & 0 deletions src/components/PostContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
* limitations under the License.
*/

import type {JSX} from 'react';
import React from 'react';

import { Box, Container, Grid } from '@mui/material';
Expand Down
2 changes: 1 addition & 1 deletion src/components/SEO.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import type { PropsWithChildren } from 'react';
import type {PropsWithChildren, JSX} from 'react';
import React from 'react';

import { ThemeProvider } from '@mui/material';
Expand Down
1 change: 1 addition & 0 deletions src/components/SocialLink.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
* limitations under the License.
*/

import type {JSX} from 'react';
import React from 'react';

import type { LinkProps } from '@mui/material';
Expand Down
2 changes: 1 addition & 1 deletion src/components/description/DescriptionPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import type { FC } from 'react';
import type {FC, JSX} from 'react';
import React from 'react';

import { Box } from '@mui/material';
Expand Down
2 changes: 1 addition & 1 deletion src/components/description/MDXPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import type { FC } from 'react';
import type {FC, JSX} from 'react';
import React from 'react';

import { Box, Typography } from '@mui/material';
Expand Down
1 change: 1 addition & 0 deletions src/components/material-kit/Card/LibraryCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ Coded by www.creative-tim.com
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
*/
import type {JSX} from 'react';
import React from 'react';

// @mui material components
Expand Down
1 change: 1 addition & 0 deletions src/components/material-kit/Card/PostCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ Coded by www.creative-tim.com
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
*/
import type {JSX} from 'react';
import React from 'react';

// @mui material components
Expand Down
3 changes: 2 additions & 1 deletion src/components/material-kit/MKBox/MKBox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
=========================================================
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
*/
import React, { forwardRef } from 'react';
import type {JSX} from "react";
import React, {forwardRef} from 'react';

import type { BoxTypeMap } from '@mui/system';
import type { BoxProps as MuiBoxProps } from '@mui/material';
Expand Down
1 change: 1 addition & 0 deletions src/components/material-kit/Navbar/common/ActionButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
*/
import type {JSX} from 'react';
import React from 'react';

import type { ButtonProps } from '@mui/material';
Expand Down
2 changes: 1 addition & 1 deletion src/components/material-kit/Navbar/common/NavbarItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
*/

import type { PropsWithChildren } from 'react';
import type {PropsWithChildren, JSX} from 'react';
import React from 'react';

// @mui material components
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
*/

import type { Dispatch, SetStateAction } from 'react';
import type {Dispatch, JSX, SetStateAction} from 'react';
import React from 'react';

import { Grow, Popper } from '@mui/material';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
*/

import type {JSX} from 'react';
import React from 'react';

import type { Theme } from '@mui/material';
Expand Down
2 changes: 1 addition & 1 deletion src/components/material-kit/Navbar/desktop/NavbarNav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
*/

import type { Dispatch, SetStateAction } from 'react';
import type {Dispatch, JSX, SetStateAction} from 'react';
import React from 'react';

import type { HoverStyle } from '../common';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
*/

import type {JSX} from 'react';
import React from 'react';

import type { Theme } from '@mui/material';
Expand Down
1 change: 1 addition & 0 deletions src/components/material-kit/Navbar/mobile/DropdownLink.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
*/

import type {JSX} from 'react';
import React from 'react';

import type { Theme } from '@mui/material';
Expand Down
1 change: 1 addition & 0 deletions src/components/material-kit/Navbar/mobile/NavDropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
*/

import type {JSX} from 'react';
import React from 'react';

import type { HeaderRouteWithMenus } from '../../../Header';
Expand Down
1 change: 1 addition & 0 deletions src/components/material-kit/Navbar/mobile/NavbarButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
*/

import type {JSX} from 'react';
import React from 'react';

import { Close, Menu } from '@mui/icons-material';
Expand Down
3 changes: 2 additions & 1 deletion src/components/material-kit/Navbar/mobile/NavbarNav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
=========================================================
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
*/
import React, { useState } from 'react';
import type {JSX} from 'react';
import React, { useState} from 'react';

// @mui material components
import { Collapse } from '@mui/material';
Expand Down
2 changes: 1 addition & 1 deletion src/components/modelGenerationApp/Features.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import type { FC, PropsWithChildren } from 'react';
import type {FC, PropsWithChildren, JSX} from 'react';
import React from 'react';

import type { BoxProps } from '@mui/material';
Expand Down
2 changes: 1 addition & 1 deletion src/pages/404.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import type { FC } from 'react';
import type {FC, JSX} from 'react';
import React from 'react';

import type { HeadProps } from 'gatsby';
Expand Down
1 change: 1 addition & 0 deletions src/pages/blog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import type {JSX} from "react";
import * as React from 'react';

import type { HeadProps } from 'gatsby';
Expand Down
1 change: 1 addition & 0 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
* limitations under the License.
*/

import type {JSX} from "react";
import * as React from 'react';
import type { HeadProps } from 'gatsby';

Expand Down
1 change: 1 addition & 0 deletions src/pages/news.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import type {JSX} from "react";
import * as React from 'react';

import type { HeadProps } from 'gatsby';
Expand Down
1 change: 1 addition & 0 deletions src/sections/SectionWithPosts.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import type {JSX} from 'react';
import React from 'react';

import type { PostContent } from '../components';
Expand Down
1 change: 1 addition & 0 deletions src/sections/home/About.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import type {JSX} from 'react';
import React from 'react';

import { aboutContent } from '../../content';
Expand Down
1 change: 1 addition & 0 deletions src/sections/home/Blog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import type {JSX} from 'react';
import React from 'react';

import { postsContent } from '../../content';
Expand Down
1 change: 1 addition & 0 deletions src/sections/home/Landing.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import type {JSX} from 'react';
import React from 'react';

import type { Theme } from '@mui/material';
Expand Down
1 change: 1 addition & 0 deletions src/sections/home/Libraries.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import type {JSX} from 'react';
import React from 'react';

import { Container, Grid } from '@mui/material';
Expand Down
1 change: 1 addition & 0 deletions src/sections/home/News.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import type {JSX} from 'react';
import React from 'react';

import { newsContent } from '../../content';
Expand Down

0 comments on commit a384c9c

Please sign in to comment.