Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Small tweaks #2243

Merged
merged 1 commit into from
Aug 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion app/subscriber/src/features/my-reports/ReportFilter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ export const ReportFilter: React.FC = () => {
const [{ reportsFilter }, { storeReportsFilter }] = useProfileStore();

const [filter, setFilter] = React.useState(reportsFilter);
const handleClear = () => {
setFilter('');
storeReportsFilter('');
};

return (
<Row className="report-filter" gap="1rem" flex="2">
Expand All @@ -23,7 +27,7 @@ export const ReportFilter: React.FC = () => {
onKeyDown={(e) => e.code === 'Enter' && storeReportsFilter(filter)}
onChange={(e) => setFilter(e.target.value)}
>
<FaX className="clear" onClick={() => setFilter('')} />
<FaX className="clear" onClick={handleClear} />
</Text>
<Button onClick={() => storeReportsFilter(filter)}>
Filter
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import { Col } from 'tno-core';

export const PreviousResults = styled(Col)`
.prev-result-row {
padding-left: 1rem;
padding-bottom: 0.5rem;
&:hover {
cursor: pointer;
.hits {
Expand Down
Loading