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

fix rating trainee #512

Merged
merged 5 commits into from
Sep 27, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/components/ratings/hooks/useAddNewRating.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ const useAddRating = ({
content: ratingData.feedback.toString(),
},
onError: (err) => {
setFeedbackError('Leave a feedback');
setFeedbackError('This Trainee was Dropped out ');
},
onCompleted: () => {
setRatingData(initialRatingData);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ Array [
className="flex justify-between w-full"
>
<button
className="btn info sm w-[30%] md:w-1/4 text-sm font-sans font-serif"
className="btn info sm w-[30%] md:w-1/4 text-sm font-sans font-serif "
data-testid="removeInviteModel"
disabled={false}
onClick={[Function]}
Expand All @@ -69,7 +69,7 @@ Array [
Cancel
</button>
<button
className="btn primary sm w-[30%] md:w-1/4 text-sm font-sans font-serif"
className="btn primary sm w-[30%] md:w-1/4 text-sm font-sans font-serif "
disabled={false}
onClick={[Function]}
type="button"
Expand Down Expand Up @@ -326,7 +326,7 @@ Array [
className="flex justify-between w-full"
>
<button
className="btn info sm w-[30%] md:w-1/4 text-sm font-sans font-serif"
className="btn info sm w-[30%] md:w-1/4 text-sm font-sans font-serif "
data-testid="removeModel1"
disabled={false}
onClick={[Function]}
Expand All @@ -335,7 +335,7 @@ Array [
Cancel
</button>
<button
className="btn primary sm w-[30%] md:w-1/4 text-sm font-sans font-serif"
className="btn primary sm w-[30%] md:w-1/4 text-sm font-sans font-serif "
disabled={false}
onClick={[Function]}
type="button"
Expand Down Expand Up @@ -384,7 +384,7 @@ Array [
className="flex justify-between w-full"
>
<button
className="btn info sm w-[30%] md:w-1/4 text-sm font-sans font-serif"
className="btn info sm w-[30%] md:w-1/4 text-sm font-sans font-serif "
data-testid="removeModel2"
disabled={false}
onClick={[Function]}
Expand All @@ -393,7 +393,7 @@ Array [
Cancel
</button>
<button
className="btn primary sm w-[30%] md:w-1/4 text-sm font-sans font-serif"
className="btn primary sm w-[30%] md:w-1/4 text-sm font-sans font-serif "
data-testid="removeMemberFromCohort"
disabled={false}
onClick={[Function]}
Expand Down Expand Up @@ -463,14 +463,14 @@ Array [
name="date"
readOnly={true}
type="text"
value="2024-09-13"
value="2024-09-26"
/>
</div>
<div
className="flex justify-between w-full"
>
<button
className="btn info sm w-[30%] md:w-1/4 text-sm font-sans font-serif"
className="btn info sm w-[30%] md:w-1/4 text-sm font-sans font-serif "
data-testid="dropModel"
disabled={false}
onClick={[Function]}
Expand All @@ -479,7 +479,7 @@ Array [
Cancel
</button>
<button
className="btn primary sm w-[30%] md:w-1/4 text-sm font-sans font-serif"
className="btn primary sm w-[30%] md:w-1/4 text-sm font-sans font-serif "
data-testid="dropMemberFromCohort"
disabled={false}
onClick={[Function]}
Expand All @@ -493,16 +493,16 @@ Array [
</div>
</div>,
<div
className="h-screen w-screen z-20 bg-black bg-opacity-30 backdrop-blur-sm fixed top-0 left-0 flex items-center justify-center px-4 hidden"
className="h-screen w-screen z-20 bg-black bg-opacity-30 backdrop-blur-sm fixed top-0 left-0 flex items-center justify-center px-4 hidden"
>
<div
className="w-full p-4 pb-8 bg-indigo-100 rounded-lg dark:bg-dark-bg sm:w-3/4 xl:w-4/12"
>
<div
className="flex flex-wrap items-center justify-center w-full card-title "
className="flex flex-wrap items-center justify-center w-full card-title"
>
<h3
className="w-11/12 text-sm font-bold text-center dark:text-white "
className="w-11/12 text-sm font-bold text-center dark:text-white"
>
Add Trainee
</h3>
Expand All @@ -514,10 +514,10 @@ Array [
className="card-body"
>
<form
className="px-8 py-3 "
className="px-8 py-3"
>
<div
className="my-3 input h-9 "
className="my-3 input h-9"
>
<div
className="flex items-center w-full h-full rounded-md grouped-input"
Expand Down Expand Up @@ -625,7 +625,7 @@ Array [
</div>
</div>
<div
className="my-3 text-white input h-9 "
className="my-3 text-white input h-9"
>
<div
className="flex items-center w-full h-full text-white rounded-md grouped-input"
Expand Down Expand Up @@ -733,7 +733,7 @@ Array [
</div>
</div>
<div
className="my-3 text-white input h-9 "
className="my-3 text-white input h-9"
>
<div
className="flex items-center w-full h-full text-white rounded-md grouped-input"
Expand Down Expand Up @@ -844,7 +844,7 @@ Array [
className="flex justify-between w-full"
>
<button
className="btn info sm w-[30%] md:w-1/4 text-sm font-sans font-serif"
className="btn info sm w-[30%] md:w-1/4 text-sm font-sans font-serif "
data-testid="removeModel"
disabled={false}
onClick={[Function]}
Expand All @@ -853,7 +853,7 @@ Array [
Cancel
</button>
<button
className="btn primary sm w-[30%] md:w-1/4 text-sm font-sans font-serif"
className="btn primary sm w-[30%] md:w-1/4 text-sm font-sans font-serif "
data-testid="saveButton"
disabled={false}
onClick={[Function]}
Expand Down Expand Up @@ -886,7 +886,7 @@ Array [
className="flex gap-2"
>
<button
className="btn primary lg m-0 font-serif"
className="btn primary lg m-0 font-serif "
data-testid="registerModel"
disabled={false}
onClick={[Function]}
Expand All @@ -897,7 +897,7 @@ Array [

</button>
<button
className="btn primary lg m-0 font-serif"
className="btn primary lg m-0 font-serif "
data-testid="inviteModel"
disabled={false}
onClick={[Function]}
Expand Down
36 changes: 18 additions & 18 deletions src/components/tests/__snapshots__/Header.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ exports[`Header Tests Should render the header with home 1`] = `
onClick={[Function]}
>
<button
className="btn primary lg undefined font-serif"
className="btn primary lg undefined font-serif "
disabled={false}
type="button"
>
Expand All @@ -141,7 +141,7 @@ exports[`Header Tests Should render the header with home 1`] = `
onClick={[Function]}
>
<button
className="btn transparentbtn lg mr-8 font-serif"
className="btn transparentbtn lg mr-8 font-serif "
disabled={false}
type="button"
>
Expand Down Expand Up @@ -257,7 +257,7 @@ exports[`Header Tests Should render the header with home 1`] = `
onClick={[Function]}
>
<button
className="btn transparentbtn lg mr-8 font-serif"
className="btn transparentbtn lg mr-8 font-serif "
disabled={false}
type="button"
>
Expand Down Expand Up @@ -396,7 +396,7 @@ exports[`Header Tests Should render the header with no active 1`] = `
onClick={[Function]}
>
<button
className="btn primary lg undefined font-serif"
className="btn primary lg undefined font-serif "
disabled={false}
type="button"
>
Expand All @@ -410,7 +410,7 @@ exports[`Header Tests Should render the header with no active 1`] = `
onClick={[Function]}
>
<button
className="btn transparentbtn lg mr-8 font-serif"
className="btn transparentbtn lg mr-8 font-serif "
disabled={false}
type="button"
>
Expand Down Expand Up @@ -526,7 +526,7 @@ exports[`Header Tests Should render the header with no active 1`] = `
onClick={[Function]}
>
<button
className="btn transparentbtn lg mr-8 font-serif"
className="btn transparentbtn lg mr-8 font-serif "
disabled={false}
type="button"
>
Expand Down Expand Up @@ -655,7 +655,7 @@ exports[`Header Tests Should render the header with no active 2`] = `
onClick={[Function]}
>
<button
className="btn primary lg undefined font-serif"
className="btn primary lg undefined font-serif "
disabled={false}
type="button"
>
Expand All @@ -665,7 +665,7 @@ exports[`Header Tests Should render the header with no active 2`] = `
</button>
</a>
<button
className="btn transparentbtn lg text-red-500 font-bolf dark:text-dark-text-fill mr-8 border border-red-600 dark:border-dark-text-fill font-serif"
className="btn transparentbtn lg text-red-500 font-bolf dark:text-dark-text-fill mr-8 border border-red-600 dark:border-dark-text-fill font-serif "
disabled={false}
onClick={[Function]}
type="button"
Expand Down Expand Up @@ -768,7 +768,7 @@ exports[`Header Tests Should render the header with no active 2`] = `
</a>
</li>
<button
className="btn transparentbtn lg text-red-500 font-bolf dark:text-dark-text-fill mr-8 border border-red-600 dark:border-dark-text-fill font-serif"
className="btn transparentbtn lg text-red-500 font-bolf dark:text-dark-text-fill mr-8 border border-red-600 dark:border-dark-text-fill font-serif "
disabled={false}
onClick={[Function]}
type="button"
Expand Down Expand Up @@ -906,7 +906,7 @@ exports[`Header Tests Should render the header with no active 3`] = `
onClick={[Function]}
>
<button
className="btn primary lg undefined font-serif"
className="btn primary lg undefined font-serif "
disabled={false}
type="button"
>
Expand All @@ -920,7 +920,7 @@ exports[`Header Tests Should render the header with no active 3`] = `
onClick={[Function]}
>
<button
className="btn transparentbtn lg mr-8 font-serif"
className="btn transparentbtn lg mr-8 font-serif "
disabled={false}
type="button"
>
Expand Down Expand Up @@ -1036,7 +1036,7 @@ exports[`Header Tests Should render the header with no active 3`] = `
onClick={[Function]}
>
<button
className="btn transparentbtn lg mr-8 font-serif"
className="btn transparentbtn lg mr-8 font-serif "
disabled={false}
type="button"
>
Expand Down Expand Up @@ -1176,7 +1176,7 @@ exports[`Header Tests Should render the header with pricing active 1`] = `
onClick={[Function]}
>
<button
className="btn primary lg undefined font-serif"
className="btn primary lg undefined font-serif "
disabled={false}
type="button"
>
Expand All @@ -1190,7 +1190,7 @@ exports[`Header Tests Should render the header with pricing active 1`] = `
onClick={[Function]}
>
<button
className="btn transparentbtn lg mr-8 font-serif"
className="btn transparentbtn lg mr-8 font-serif "
disabled={false}
type="button"
>
Expand Down Expand Up @@ -1306,7 +1306,7 @@ exports[`Header Tests Should render the header with pricing active 1`] = `
onClick={[Function]}
>
<button
className="btn transparentbtn lg mr-8 font-serif"
className="btn transparentbtn lg mr-8 font-serif "
disabled={false}
type="button"
>
Expand Down Expand Up @@ -1445,7 +1445,7 @@ exports[`Header Tests Should render the header with product active 1`] = `
onClick={[Function]}
>
<button
className="btn primary lg undefined font-serif"
className="btn primary lg undefined font-serif "
disabled={false}
type="button"
>
Expand All @@ -1459,7 +1459,7 @@ exports[`Header Tests Should render the header with product active 1`] = `
onClick={[Function]}
>
<button
className="btn transparentbtn lg mr-8 font-serif"
className="btn transparentbtn lg mr-8 font-serif "
disabled={false}
type="button"
>
Expand Down Expand Up @@ -1575,7 +1575,7 @@ exports[`Header Tests Should render the header with product active 1`] = `
onClick={[Function]}
>
<button
className="btn transparentbtn lg mr-8 font-serif"
className="btn transparentbtn lg mr-8 font-serif "
disabled={false}
type="button"
>
Expand Down
Loading
Loading