Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added chose category dropdown for new quiz #1389

Merged
merged 18 commits into from
Nov 22, 2023

Conversation

mynotdoing
Copy link
Contributor

@mynotdoing mynotdoing commented Nov 9, 2023

Added chose category dropdown for new quiz

Знімок екрана 2023-11-22 о 16 05 06

2023-11-22.14.35.50.mov

Copy link
Contributor

@MariaAfonina MariaAfonina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add a picture or video of how it works

@abalanovsky
Copy link
Contributor

Fix lint please

"successAddedOuiz": "Ouiz was successtully created"
"successAddedOuiz": "Ouiz was successtully created",
"categoryDropdown": "Category...",
"categoryDropdownHelper": "Choose the category:"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe better to move these translations to "common.json"? Because we need this for other pages.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

position: 'absolute',
top: '-33px',
left: '-14px'
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are you using this variable? You use this style only once, so you can just write this in the 84-line.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@@ -17,6 +17,8 @@ export interface QuizContentProps {
setDescription: Dispatch<SetStateAction<CreateQuizParams['description']>>
questions: Question[]
setQuestions: Dispatch<SetStateAction<Question[]>>
category: string | null
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe it's better to use category: Category | null?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@mynotdoing mynotdoing force-pushed the feature/1363/page_delails_for_current_quiz branch from c6b3e82 to 000a245 Compare November 21, 2023 03:33
@mynotdoing mynotdoing force-pushed the feature/1363/page_delails_for_current_quiz branch from dbb9326 to c38ad42 Compare November 22, 2023 12:31
@@ -37,6 +37,8 @@
"fileSizeError": "Size for one file cannot be more than 10 MB.",
"noItems": "Елементів не знайдено",
"view": "Переглянути",
"categoryDropdown": "Категорія...",
"categoryDropdownHelper": "Оберіть категорію:",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You don't need this anymore. Delete this.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

Copy link

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

75.0% 75.0% Coverage
0.0% 0.0% Duplication

idea Catch issues before they fail your Quality Gate with our IDE extension sonarlint SonarLint

@mynotdoing mynotdoing merged commit 6285810 into develop Nov 22, 2023
3 of 4 checks passed
@mynotdoing mynotdoing deleted the feature/1363/page_delails_for_current_quiz branch November 22, 2023 16:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

(SP: 1) Create page details for current quiz
6 participants