Skip to content

Commit

Permalink
remove react.fc type
Browse files Browse the repository at this point in the history
  • Loading branch information
danilowoz committed Dec 14, 2021
1 parent 0b042c8 commit 596369e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion sandpack-react/src/common/ErrorOverlay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { useErrorMessage } from "../hooks/useErrorMessage";
/**
* @category Components
*/
export const ErrorOverlay: React.FC = () => {
export const ErrorOverlay = (): JSX.Element | null => {
const errorMessage = useErrorMessage();
const c = useClasser("sp");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { UnstyledOpenInCodeSandboxButton } from "./UnstyledOpenInCodeSandboxButt
/**
* @category Components
*/
export const OpenInCodeSandboxButton: React.FC = () => {
export const OpenInCodeSandboxButton = (): JSX.Element | null => {
const { theme } = useSandpackTheme();
const c = useClasser("sp");

Expand Down
2 changes: 1 addition & 1 deletion sandpack-react/src/common/RunButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { RunIcon } from "../icons";
/**
* @category Components
*/
export const RunButton: React.FC = () => {
export const RunButton = (): JSX.Element | null => {
const c = useClasser("sp");
const { sandpack } = useSandpack();

Expand Down

0 comments on commit 596369e

Please sign in to comment.