fix created at
This commit is contained in:
parent
8c67784d62
commit
a652b78230
4 changed files with 68 additions and 36 deletions
|
|
@ -71,6 +71,7 @@ const SurveyInfo: React.FC<SurveyInfoProps> = ({titleSurvey, setDescriptionSurve
|
|||
setShowDescriptionField(true);
|
||||
}
|
||||
|
||||
|
||||
const handleTitleBlur = () => {
|
||||
setShowNewTitleField(false);
|
||||
};
|
||||
|
|
@ -87,7 +88,7 @@ const SurveyInfo: React.FC<SurveyInfoProps> = ({titleSurvey, setDescriptionSurve
|
|||
}
|
||||
|
||||
const renderTitle = () => {
|
||||
if (isSurveyViewPage || isCompleteSurveyActive) {
|
||||
if ( isCompleteSurveyActive) {
|
||||
return (
|
||||
<button className={styles.titleSurvey}>
|
||||
<h1>{titleSurvey || 'Название опроса'}</h1>
|
||||
|
|
@ -119,7 +120,7 @@ const SurveyInfo: React.FC<SurveyInfoProps> = ({titleSurvey, setDescriptionSurve
|
|||
};
|
||||
|
||||
const renderDescription = () => {
|
||||
if (isSurveyViewPage || isCompleteSurveyActive) {
|
||||
if (isCompleteSurveyActive) {
|
||||
return descriptionSurvey ? (
|
||||
<p className={styles.desc}>{descriptionSurvey}</p>
|
||||
) : 'Описание';
|
||||
|
|
@ -146,7 +147,8 @@ const SurveyInfo: React.FC<SurveyInfoProps> = ({titleSurvey, setDescriptionSurve
|
|||
/>
|
||||
</div>
|
||||
);
|
||||
} else {
|
||||
}
|
||||
else {
|
||||
return (
|
||||
<button
|
||||
className={styles.descripButton}
|
||||
|
|
@ -174,4 +176,4 @@ const SurveyInfo: React.FC<SurveyInfoProps> = ({titleSurvey, setDescriptionSurve
|
|||
|
||||
};
|
||||
|
||||
export default SurveyInfo;
|
||||
export default SurveyInfo;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue