Skip to content

Commit

Permalink
Indicate that these component are client only
Browse files Browse the repository at this point in the history
  • Loading branch information
kilemensi committed Sep 6, 2024
1 parent 1293a12 commit 6b00ee2
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 17 deletions.
8 changes: 2 additions & 6 deletions packages/commons-ui-core/src/ImageButton/ImageButton.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"use client";

import ButtonBase from "@mui/material/ButtonBase";
import { styled } from "@mui/material/styles";
import PropTypes from "prop-types";
Expand Down Expand Up @@ -53,10 +55,4 @@ ImageButton.propTypes = {
width: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
};

ImageButton.defaultProps = {
height: undefined,
src: undefined,
width: undefined,
};

export default ImageButton;
2 changes: 2 additions & 0 deletions packages/commons-ui-core/src/NavBar/NavBar.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"use client";

import AppBar from "@mui/material/AppBar";
import { styled } from "@mui/material/styles";
import Toolbar from "@mui/material/Toolbar";
Expand Down
2 changes: 2 additions & 0 deletions packages/commons-ui-core/src/NavList/NavList.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"use client";

import { styled } from "@mui/material/styles";
import PropTypes from "prop-types";
import React from "react";
Expand Down
8 changes: 2 additions & 6 deletions packages/commons-ui-core/src/RichTypography/RichTypography.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"use client";

import { styled } from "@mui/material/styles";
import Typography from "@mui/material/Typography";
import PropTypes from "prop-types";
Expand Down Expand Up @@ -65,10 +67,4 @@ RichTypography.propTypes = {
component: PropTypes.elementType,
};

RichTypography.defaultProps = {
children: undefined,
html: undefined,
component: undefined,
};

export default RichTypography;
8 changes: 3 additions & 5 deletions packages/commons-ui-core/src/Section/Section.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"use client";

import { Container } from "@mui/material";
import { styled } from "@mui/material/styles";
import PropTypes from "prop-types";
Expand Down Expand Up @@ -37,7 +39,7 @@ const Section = React.forwardRef(function Section(props, ref) {

return (
<SectionRoot
{...props}
{...others}
disableGutters={disableGutters}
fixed={fixed}
ownerState={ownerState}
Expand All @@ -50,8 +52,4 @@ Section.propTypes = {
fixed: PropTypes.bool,
};

Section.defaultProps = {
fixed: undefined,
};

export default Section;

0 comments on commit 6b00ee2

Please sign in to comment.