fix(ui) uxt fixes
This commit is contained in:
parent
c441f8a1ec
commit
d431fdb529
2 changed files with 6 additions and 5 deletions
|
|
@ -33,7 +33,9 @@ const menuItems = [
|
|||
];
|
||||
|
||||
function TestEdit() {
|
||||
const [hasChanged, setHasChanged] = React.useState(false);
|
||||
// @ts-ignore
|
||||
const { siteId, testId } = useParams();
|
||||
const [hasChanged, setHasChanged] = React.useState(testId === 'new');
|
||||
const { uxtestingStore } = useStore();
|
||||
const [newTestTitle, setNewTestTitle] = React.useState('');
|
||||
const [newTestDescription, setNewTestDescription] = React.useState('');
|
||||
|
|
@ -42,8 +44,7 @@ function TestEdit() {
|
|||
const [isModalVisible, setIsModalVisible] = React.useState(false);
|
||||
const [isConclusionEditing, setIsConclusionEditing] = React.useState(false);
|
||||
const [isOverviewEditing, setIsOverviewEditing] = React.useState(false);
|
||||
// @ts-ignore
|
||||
const { siteId, testId } = useParams();
|
||||
|
||||
const { showModal, hideModal } = useModal();
|
||||
const history = useHistory();
|
||||
usePageTitle(`Usability Tests | ${uxtestingStore.instance ? 'Edit' : 'Create'}`);
|
||||
|
|
|
|||
|
|
@ -331,10 +331,10 @@ const Title = observer(({ testId, siteId }: any) => {
|
|||
toast.success('The usability test is now live and accessible to participants.');
|
||||
break;
|
||||
case 'paused':
|
||||
toast.success('Usability test is on \'Hold\'—participant activity paused. Resume at your convenience.');
|
||||
toast.success('Usability test is on \'Hold\'—participant activity paused. Switch it to “ongoing” to resume activity.');
|
||||
break;
|
||||
case 'closed':
|
||||
toast.success('he usability test has been marked as completed. All participant interactions are now finalized.');
|
||||
toast.success('The usability test has been marked as completed. All participant interactions are now finalized.');
|
||||
break;
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue