Skip to content

Commit

Permalink
added components
Browse files Browse the repository at this point in the history
  • Loading branch information
MaggieWesolowska committed May 16, 2023
1 parent 5057477 commit 3842e41
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/components/FeedbackOptions/FeedbackOptions.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// import PropTypes from 'prop-types';

export const FeedbackOptions = (options, onLeaveFeedback) => {
return {};
};
7 changes: 7 additions & 0 deletions src/components/Notification/Notification.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import PropTypes from 'prop-types';

export const Notification = ({ message }) => <p>{message}</p>;

Notification.propTypes = {
message: PropTypes.string.isRequired,
};
13 changes: 13 additions & 0 deletions src/components/SectonTitle/SectionTitle.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import PropTypes from 'prop-types';

export const SectionTitle = ({ title, children }) => (
<div>
<h2>{title}</h2>
{children}
</div>
);

SectionTitle.propTypes = {
title: PropTypes.string.isRequired,
children: PropTypes.string.isRequired,
};

0 comments on commit 3842e41

Please sign in to comment.