From d0c538e811734102946ed90d0b4b8fdd255c6840 Mon Sep 17 00:00:00 2001 From: Adam Setch Date: Mon, 8 Jul 2024 11:13:45 -0700 Subject: [PATCH] fix: align filters by using legend component --- src/routes/Filters.tsx | 11 +++-------- src/routes/__snapshots__/Filters.test.tsx.snap | 8 ++++---- 2 files changed, 7 insertions(+), 12 deletions(-) diff --git a/src/routes/Filters.tsx b/src/routes/Filters.tsx index 295044fd9..83a055698 100644 --- a/src/routes/Filters.tsx +++ b/src/routes/Filters.tsx @@ -6,6 +6,7 @@ import { import { type FC, useContext } from 'react'; import { Header } from '../components/Header'; import { Checkbox } from '../components/fields/Checkbox'; +import { Legend } from '../components/settings/Legend'; import { AppContext } from '../context/App'; import { BUTTON_CLASS_NAME } from '../styles/gitify'; import { Size } from '../types'; @@ -36,10 +37,7 @@ export const FiltersRoute: FC = () => {
Filters
- - - Users - + Users {
- - - Reason - + Reason Note: if no reasons are selected, all notifications will be shown. diff --git a/src/routes/__snapshots__/Filters.test.tsx.snap b/src/routes/__snapshots__/Filters.test.tsx.snap index fc2c4fbae..af8151c81 100644 --- a/src/routes/__snapshots__/Filters.test.tsx.snap +++ b/src/routes/__snapshots__/Filters.test.tsx.snap @@ -42,8 +42,8 @@ exports[`routes/Filters.tsx General should render itself & its children 1`] = ` class="mb-3" >