Skip to content

Commit

Permalink
fix: display daily plan today
Browse files Browse the repository at this point in the history
  • Loading branch information
Innocent-Akim committed Jul 20, 2024
1 parent 6096718 commit d13075d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
5 changes: 2 additions & 3 deletions apps/web/app/[locale]/page-component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ import { DailyPlanCompareEstimatedModal } from 'lib/features/daily-plan';

function MainPage() {
const t = useTranslations();
const [isOpen, setIsOpen] = useState(false)
const [isOpen, setIsOpen] = useState(true)
const { todayPlan } = useDailyPlan();

const profile = useUserProfilePage();
const [headerSize, setHeaderSize] = useState(10);

const { isTeamMember, isTrackingEnabled, activeTeam } = useOrganizationTeams();
Expand Down Expand Up @@ -65,7 +65,6 @@ function MainPage() {
if (!online) {
return <Offline />;
}
const profile = useUserProfilePage();

return (
<>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { Card, Modal, Text, Button } from 'lib/components'
import { PiWarningCircleFill } from "react-icons/pi";
import '../../../styles/style-input.css';
import React from 'react'
import Separator from '@components/ui/separator';
import { IDailyPlan, ITeamTask } from '@app/interfaces';
Expand All @@ -25,9 +24,7 @@ export function DailyPlanCompareEstimatedModal({
<HeadTitle />
</div>
<div className='flex items-start flex-col justify-start w-full px-2'>
<InputTime onChange={(_) => {

}} />
<InputTime />
</div>
<div className='flex h-full w-full p-2'>
{todayPlan?.map((plan, i) => {
Expand All @@ -47,7 +44,7 @@ export function DailyPlanCompareEstimatedModal({
<PiWarningCircleFill className='text-[14px]' />
<span>Please correct planned work hours or re-estimate task(s)</span>
</div>
<ButtonAction closeModal={closeModal} onClick={() => { }} />
<ButtonAction closeModal={closeModal} />
</div>
</Card>
</div>
Expand Down
Empty file removed apps/web/styles/style-input.css
Empty file.

0 comments on commit d13075d

Please sign in to comment.