Revert "feat: integrate feeder package"
This commit is contained in:
@@ -1,2 +0,0 @@
|
||||
export const FeedbackTypes = ['Review', 'Bug', 'Idea'];
|
||||
export const primaryColor = '#00262b';
|
||||
@@ -1,103 +0,0 @@
|
||||
@import "feeder-react-feedback/dist/feeder-react-feedback.css";
|
||||
|
||||
.frf-feedback-container {
|
||||
position: unset;
|
||||
bottom: unset;
|
||||
z-index: unset;
|
||||
width: unset;
|
||||
right: unset;
|
||||
}
|
||||
|
||||
#feedbackEmail {
|
||||
display: none;
|
||||
}
|
||||
|
||||
div[for="feedbackEmail"] {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.frf-trigger-button {
|
||||
position: unset;
|
||||
box-shadow: unset;
|
||||
}
|
||||
|
||||
.frf-feedback-icon::after {
|
||||
content: "Give Feedback" !important;
|
||||
margin-left: 8px !important;
|
||||
font-size: unset !important;
|
||||
}
|
||||
|
||||
.frf-feedback-icon-open:after {
|
||||
content: "Close" !important;
|
||||
font-size: inherit !important;
|
||||
}
|
||||
|
||||
.frf-modal-container {
|
||||
right: unset;
|
||||
bottom: unset;
|
||||
}
|
||||
|
||||
.frf-dialog-enter-active {
|
||||
animation-name: unset;
|
||||
animation-duration: unset;
|
||||
opacity: unset;
|
||||
transition: unset;
|
||||
}
|
||||
|
||||
.frf-dialog-enter {
|
||||
opacity: unset;
|
||||
}
|
||||
|
||||
.frf-dialog-exit-active {
|
||||
animation-name: unset;
|
||||
animation-duration: unset;
|
||||
opacity: unset;
|
||||
transition: unset;
|
||||
}
|
||||
|
||||
.frf-dialog-exit {
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
.frf-water {
|
||||
display: none;
|
||||
}
|
||||
|
||||
@media (hover: hover) {
|
||||
.frf-trigger-button {
|
||||
transition: unset;
|
||||
|
||||
&:hover {
|
||||
.frf-feedback-icon:after {
|
||||
content: unset;
|
||||
margin-left: unset;
|
||||
font-size: unset;
|
||||
opacity: unset;
|
||||
transition: unset;
|
||||
}
|
||||
|
||||
.frf-feedback-icon-open:after {
|
||||
content: unset;
|
||||
font-size: unset;
|
||||
opacity: unset;
|
||||
transition: unset;
|
||||
}
|
||||
}
|
||||
|
||||
.frf-feedback-icon:after {
|
||||
content: unset;
|
||||
padding-left: unset;
|
||||
font-size: unset;
|
||||
opacity: unset;
|
||||
transition: unset;
|
||||
}
|
||||
|
||||
.frf-feedback-icon-open:after {
|
||||
content: unset;
|
||||
padding-left: unset;
|
||||
font-size: unset;
|
||||
opacity: unset;
|
||||
transition: unset;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,40 +0,0 @@
|
||||
import React from 'react';
|
||||
|
||||
import Feedback from 'feeder-react-feedback';
|
||||
|
||||
import { ensureConfig, getConfig } from '@edx/frontend-platform';
|
||||
import { getAuthenticatedUser } from '@edx/frontend-platform/auth';
|
||||
import { injectIntl, intlShape } from '@edx/frontend-platform/i18n';
|
||||
|
||||
import { FeedbackTypes, primaryColor } from './constants';
|
||||
import messages from './messages';
|
||||
|
||||
import './feeder.scss';
|
||||
|
||||
ensureConfig(['FEEDER_PROJECT_ID'], 'Feedback');
|
||||
|
||||
const Index = ({ intl, ...props }) => {
|
||||
const { email } = getAuthenticatedUser();
|
||||
const projectId = getConfig().FEEDER_PROJECT_ID;
|
||||
|
||||
return (
|
||||
projectId && (
|
||||
<Feedback
|
||||
projectId={projectId}
|
||||
email
|
||||
emailDefaultValue={email}
|
||||
feedbackTypes={FeedbackTypes}
|
||||
primaryColor={primaryColor}
|
||||
submitButtonMsg={intl.formatMessage(messages.submitButton)}
|
||||
postSubmitButtonMsg={intl.formatMessage(messages.postSubmitButton)}
|
||||
{...props}
|
||||
/>
|
||||
)
|
||||
);
|
||||
};
|
||||
|
||||
Index.propTypes = {
|
||||
intl: intlShape.isRequired,
|
||||
};
|
||||
|
||||
export default injectIntl(Index);
|
||||
@@ -1,16 +0,0 @@
|
||||
import { defineMessages } from '@edx/frontend-platform/i18n';
|
||||
|
||||
const messages = defineMessages({
|
||||
submitButton: {
|
||||
id: 'feeder.submit.button',
|
||||
defaultMessage: 'Send Feedback',
|
||||
description: 'Alt text for feedback submission button.',
|
||||
},
|
||||
postSubmitButton: {
|
||||
id: 'feeder.post.submit.button',
|
||||
defaultMessage: 'Thank You For The Feedback!',
|
||||
description: 'Alt text for feedback post submission button',
|
||||
},
|
||||
});
|
||||
|
||||
export default messages;
|
||||
Reference in New Issue
Block a user