changed font size and removed console.

This commit is contained in:
Pramod Mahajan 2025-04-07 18:44:19 +05:30
parent a28d290feb
commit 9e17b74ba4
8 changed files with 17 additions and 17 deletions

View File

@ -50,7 +50,7 @@ const AttendanceLog = ({ attendance, handleModalData, projectId }) => {
<table className="table mb-0">
<thead>
<tr>
<th className="border-top-0" colSpan={2}>Name</th>
<th className="border-top-1" colSpan={2}>Name</th>
<th>
<i className="bx bxs-down-arrow-alt text-success"></i> Check-In
</th>

View File

@ -35,7 +35,7 @@ const [selectedRole, setSelectedRole] = useState("all");
const [selectedEmployees, setSelectedEmployees] = useState([]);
const { handleSubmit, control, setValue, watch, formState: { errors } } = useForm({
const { handleSubmit, control, setValue, watch, formState: { errors },reset } = useForm({
defaultValues: {
selectedEmployees: [],
description:""
@ -93,9 +93,10 @@ const onSubmit = async(data) => {
};
try
{
let response = await TasksRepository.assignTask( formattedData );
console.log( response )
// let response = await TasksRepository.assignTask( formattedData );
// console.log( response )
showToast( "Task Successfully Assigend", "success" )
reset()
closeModal()
} catch ( error )
{

View File

@ -12,14 +12,14 @@ const Building = ( {building, toggleBuilding, expandedBuildings, getContent} ) =
onClick={() => toggleBuilding(building.id)}
>
<div className="row table-responsive">
<h5 style={{ marginBottom: "0px" }}>
<h6 style={{ marginBottom: "0px", fontSize:"14px" }}>
{building.name} &nbsp;
{expandedBuildings.includes(building.id) ? (
<i className="bx bx-chevron-down"></i>
) : (
<i className="bx bx-chevron-right"></i>
)}
</h5>
</h6>
</div>
</td>
</tr>

View File

@ -124,10 +124,10 @@ const BuildingModel = ({
</div>
<div className="col-12 text-center">
<button type="submit" className="btn btn-primary me-3">
<button type="submit" className="btn btn-sm btn-primary me-3">
{ ( formData.id && getValues("name")) ? "Edit Building" : "Add Building"}
</button>
<button type="reset" className="btn btn-label-secondary" data-bs-dismiss="modal" aria-label="Close" onClick={onClose}>
<button type="reset" className="btn btn-sm btn-label-secondary" data-bs-dismiss="modal" aria-label="Close" onClick={onClose}>
Cancel
</button>
</div>

View File

@ -97,7 +97,6 @@ const FloorModel = ({
// Handle form submission
const onFormSubmit = (data) => {
onSubmit(data);
};
@ -186,14 +185,14 @@ const FloorModel = ({
)}
<div className="col-12 text-center">
<button type="submit" className="btn btn-primary me-3">
<button type="submit" className="btn btn-sm btn-primary me-3">
{formData.id !== "0" && formData.id !== ""
? "Edit Floor"
: "Add Floor"}
</button>
<button
type="reset"
className="btn btn-label-secondary"
className="btn btn-sm btn-label-secondary"
data-bs-dismiss="modal"
aria-label="Close"
>

View File

@ -94,7 +94,7 @@ const TaskModel = ({
onSubmit( data );
setSelectedActivity(null),
selectedWorkArea(null)
setSelectedWorkArea(null)
reset( {
plannedWork: 0,
completedWork:0
@ -286,12 +286,12 @@ const TaskModel = ({
)}
<div className="col-12 text-center">
<button type="submit" className="btn btn-primary me-3">
<button type="submit" className="btn btn-sm btn-primary me-3">
{formData.id !== "0" && formData.id !== "" ? "Edit Task" : "Add Task"}
</button>
<button
type="reset"
className="btn btn-label-secondary"
className="btn btn-sm btn-label-secondary"
data-bs-dismiss="modal"
aria-label="Close"
>

View File

@ -42,7 +42,7 @@ const WorkArea = ( {workArea, floor, forBuilding} ) =>
<tbody className="table-border-bottom-0">
{workArea?.workItems && workArea.workItems.length > 0 ? (
workArea.workItems.map((workItem) => (
<WorkItem key={workItem.workItemId} workItem={workItem} />
<WorkItem key={workItem.workItemId} workItem={workItem} forBuilding={forBuilding} forFloor={floor} forWorkArea={workArea} />
))
) : (
<tr>

View File

@ -39,7 +39,7 @@ const WorkItem = ({ workItem, forBuilding, forFloor, forWorkArea }) => {
workArea: forWorkArea,
workItem,
};
console.log(assigndata)
const hasWorkItem = NewWorkItem && NewWorkItem
return (
@ -108,7 +108,7 @@ const WorkItem = ({ workItem, forBuilding, forFloor, forWorkArea }) => {
data-bs-target="#project-modal"
onClick={openModal}
>
<span className="badge bg-label-primary me-1">Assign</span>
<span className="badge badge-md bg-label-primary me-1">Assign</span>
</button>
)}
<button