Skip to content

Commit

Permalink
Disable All Time during Wrapped (#258)
Browse files Browse the repository at this point in the history
  • Loading branch information
avgupta456 authored Nov 30, 2023
1 parent f48de50 commit 636d6dd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion frontend/src/components/Home/DateRangeSection.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { Input } from '../Generic';
const DateRangeSection = ({
selectedTimeRange,
setSelectedTimeRange,
// eslint-disable-next-line no-unused-vars
privateAccess,
}) => {
const timeRangeOptions = [
Expand All @@ -19,7 +20,8 @@ const DateRangeSection = ({
},
{ id: 2, label: 'Past 6 Months', disabled: false, value: 'six_months' },
{ id: 3, label: 'Past 1 Year', disabled: false, value: 'one_year' },
{ id: 4, label: 'All Time', disabled: !privateAccess, value: 'all_time' },
// { id: 4, label: 'All Time', disabled: !privateAccess, value: 'all_time' },
{ id: 4, label: 'All Time', disabled: true, value: 'all_time' },
];

const selectedOption = selectedTimeRange || timeRangeOptions[2];
Expand Down

1 comment on commit 636d6dd

@vercel
Copy link

@vercel vercel bot commented on 636d6dd Nov 30, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.