Skip to content

Open source, privacy-first web analytics. Lightweight, cookie-free Google Analytics alternative. Self-hosted or cloud.

Replace plus icon with search icon for filter (#1635)

Uku Tahtac5c8c768854
diff --git a/assets/js/dashboard/filters.js b/assets/js/dashboard/filters.js
index ce0c927b4c..727c7619c7 100644
--- a/assets/js/dashboard/filters.js
+++ b/assets/js/dashboard/filters.js
@@ -1,6 +1,6 @@
import React, { Fragment, useState } from 'react';
import { Link, withRouter } from 'react-router-dom'
-import { AdjustmentsIcon, PlusIcon, XIcon, PencilIcon } from '@heroicons/react/solid'
+import { AdjustmentsIcon, SearchIcon, XIcon, PencilIcon } from '@heroicons/react/solid'
import classNames from 'classnames'
import { Menu, Transition } from '@headlessui/react'
@@ -281,9 +281,9 @@ class Filters extends React.Component {
return (
<>
- <PlusIcon className="-ml-1 mr-1 h-4 w-4 md:h-5 md:w-5" aria-hidden="true" />
+ <SearchIcon className="-ml-1 mr-1 h-4 w-4 md:h-4 md:w-4" aria-hidden="true" />
{/* This would have been a good use-case for JSX! But in the interest of keeping the breakpoint width logic with TailwindCSS, this is a better long-term way to deal with it. */}
- <span className="sm:hidden">Filter</span><span className="hidden sm:inline-block">Add filter</span>
+ <span className="sm:hidden">Filter</span><span className="hidden sm:inline-block">Filter</span>
</>
)
}