Skip to content

Commit

Permalink
Module layouts are not consistent bistecglobal#190
Browse files Browse the repository at this point in the history
Page Title should be "Trainers" bistecglobal#189
Page title should be "Edit trainee" bistecglobal#187
  • Loading branch information
Chamath Viduranga committed Sep 26, 2023
1 parent bea7105 commit d196073
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,17 @@ function TraineesMain() {
if (view === 'form') {
content = <TraineeForm />;
btnTitle = 'Back';
title = 'Add a trainee'
title = 'Add a Trainee'
icon = <ArrowLeftOutlined />
}
else if (id) {
content = <TraineeForm />;
btnTitle = 'Back';
title = 'Edit trainee'
title = 'Edit Trainee'
icon = <ArrowLeftOutlined />
} else {
content = <TraineesCardView />;
btnTitle = 'Add a trainee';
btnTitle = 'Add a Trainee';
title = 'Trainees'
icon = <PlusOutlined />
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export default function TrainersContainer() {
<div className="p-8 flex justify-center items-center">
<div className="bg-white p-4 shadow-md rounded-md sm:w-full md:w-full lg:w-2/3 xl:w-2/3">
<div id="trainer-add-form">
<Title level={3}>Add Trainer</Title>
<Title level={3}></Title>
<form onSubmit={handleSubmit}>
<div className="mb-4">
<label htmlFor="firstName" className="block text-left font-medium text-gray-800">First Name</label>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default function TrainerMain() {
<>
<div className="mx-auto px-4 py-16 text-center">
<div className="text-center md:text-left mt-8">
<span className="ml-8 mt-4 text-2xl font-bold">Trainer</span>
<span className="ml-8 mt-4 text-2xl font-bold">{title}</span>
</div>
<div className="ml-8 mt-4 text-center md:text-left">
<button className="bg-blue-500 text-white py-2 px-4 rounded flex items-center space-x-2 hover:bg-blue-600" onClick={onClickHandler} >
Expand Down

0 comments on commit d196073

Please sign in to comment.