Skip to content

Commit

Permalink
✨ Use 'search' parameter as default value for search
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonJnsson committed Sep 20, 2021
1 parent 56af9b3 commit 135452d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resources/js/widgets/projects/ProjectsOverview.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import Project from "widgets/projects/Project";
import ViewToggle from "widgets/projects/ViewToggle";
import Link from "widgets/navigation/Link";
import * as Auth from "@morningtrain/react-auth";
import { Env } from '@morningtrain/helpers'
import { Env, router } from '@morningtrain/helpers'
import {inject} from "@morningtrain/react-decorators";
import VideoBot from 'widgets/video-bot/VideoBot';

Expand Down Expand Up @@ -106,7 +106,7 @@ export default class ProjectsOverview extends Widget {
<span className={'subtitle'}>showcase</span>
<div className={'filter-bar__filters filter-bar__filters--inputs'}>
<div className="search-wrap">
<Filters.Search/>
<Filters.Search defaultValue={router.parameter('search')}/>
</div>
<div className="select-wrap">
<Filters.Enum constraint={'$order'} enum={'generic_order_type'} />
Expand Down

0 comments on commit 135452d

Please sign in to comment.