Skip to content

Commit 53a5f0d

Browse files
committed
proptype is added
1 parent 43deab5 commit 53a5f0d

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

forms-flow-nav/src/sidenav/Sidebar.jsx

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,19 @@ const UserProfile = ({ userDetail, initials, handleProfileModal, logout, t }) =>
4545
</div>
4646
);
4747

48+
UserProfile.propTypes = {
49+
userDetail: PropTypes.shape({
50+
name: PropTypes.string,
51+
email: PropTypes.string,
52+
preferred_username: PropTypes.string,
53+
}).isRequired,
54+
55+
initials: PropTypes.string.isRequired,
56+
handleProfileModal: PropTypes.func.isRequired,
57+
logout: PropTypes.func.isRequired,
58+
t: PropTypes.func.isRequired,
59+
};
60+
4861
const renderLogo = (hideLogo) => {
4962
if (hideLogo === "true") return null;
5063

0 commit comments

Comments
 (0)