Skip to content

Commit

Permalink
Remove unnecessary hook
Browse files Browse the repository at this point in the history
  • Loading branch information
jordojordo committed Aug 5, 2024
1 parent 2cea120 commit 0f06965
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/components/DateRange.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ import React, { useState } from 'react';
import dayjs from 'dayjs';
import { DatePicker, Space } from 'antd';

import useViewport from '../hooks/useViewport';

import '../assets/style/DateRange.css';

const { RangePicker } = DatePicker;
Expand All @@ -21,9 +19,6 @@ const DateRangePicker: React.FC<DateRangePickerProps> = ({
initialEndDate,
onDateRangeChange,
}) => {
const { width } = useViewport();
const isMobile = width < 725;

const today = dayjs();
const oneMonthAgo = dayjs().subtract(1, 'month');

Expand Down

0 comments on commit 0f06965

Please sign in to comment.