Skip to content

Commit

Permalink
chore: Export types from feedback components to match table values
Browse files Browse the repository at this point in the history
  • Loading branch information
DafyddLlyr committed May 17, 2024
1 parent 418cd82 commit d7d08eb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions editor.planx.uk/src/components/Feedback/MoreInfoFeedback.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ const MoreInfoFeedback = styled(Box)(({ theme }) => ({
},
}));

export type Sentiment = "helpful" | "unhelpful";

const MoreInfoFeedbackComponent: React.FC = () => {
type View = "yes/no" | "input" | "thanks";

type Sentiment = "helpful" | "unhelpful";

const [currentFeedbackView, setCurrentFeedbackView] =
useState<View>("yes/no");
const [feedbackOption, setFeedbackOption] = useState<Sentiment | null>(null);
Expand Down
4 changes: 2 additions & 2 deletions editor.planx.uk/src/components/Feedback/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@ export type FeedbackFormInput = {
id: string;
};

const Feedback: React.FC = () => {
type FeedbackCategory = "issue" | "idea" | "comment" | "inaccuracy";
export type FeedbackCategory = "issue" | "idea" | "comment" | "inaccuracy";

const Feedback: React.FC = () => {
type View = "banner" | "triage" | FeedbackCategory | "thanks";

type ClickEvents = "close" | "back" | "triage" | FeedbackCategory;
Expand Down

0 comments on commit d7d08eb

Please sign in to comment.