Skip to content

Commit

Permalink
Remove CIRCULARS_FILTER_BY_DATE feature flag
Browse files Browse the repository at this point in the history
  • Loading branch information
lpsinger committed Jan 22, 2024
1 parent 065a5e5 commit 5f22745
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions app/routes/_gcn.circulars._archive._index/route.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ import CircularsIndex from './CircularsIndex'
import { DateSelector } from './DateSelectorMenu'
import Hint from '~/components/Hint'
import { getFormDataString } from '~/lib/utils'
import { useFeature } from '~/root'

import searchImg from 'nasawds/src/img/usa-icons-bg/search--white.svg'

Expand Down Expand Up @@ -92,7 +91,6 @@ export async function action({ request }: ActionFunctionArgs) {
export default function () {
const newItem = useActionData<typeof action>()
const { items, page, totalPages, totalItems } = useLoaderData<typeof loader>()
const featureCircularsFilterByDate = useFeature('CIRCULARS_FILTER_BY_DATE')

// Concatenate items from the action and loader functions
const allItems = [...(newItem ? [newItem] : []), ...(items || [])]
Expand Down Expand Up @@ -150,13 +148,11 @@ export default function () {
/>
</Button>
</Form>
{featureCircularsFilterByDate && (
<DateSelector
form={formId}
defaultStartDate={startDate}
defaultEndDate={endDate}
/>
)}
<DateSelector
form={formId}
defaultStartDate={startDate}
defaultEndDate={endDate}
/>
<Link to={`/circulars/new${searchString}`}>
<Button
type="button"
Expand Down

0 comments on commit 5f22745

Please sign in to comment.