Skip to content

Commit

Permalink
type
Browse files Browse the repository at this point in the history
  • Loading branch information
ameer2468 committed May 17, 2024
1 parent a9dee24 commit dcdc1a5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion apps/mobile/src/components/header/DynamicHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,17 @@ export default function DynamicHeader({
const isAndroid = Platform.OS === 'android';
const explorerStore = useExplorerStore();
const searchStore = useSearchStore();
const params: any = headerRoute && headerRoute.route.params;
const params = headerRoute?.route.params as {
id: number;
color: string;
name: string;
}

//pressing the search icon will add a filter
//based on the screen

const searchHandler = (key: Props['kind']) => {
if (!params) return;
const keys: {
tags: TagItem;
locations: FilterItem;
Expand Down

0 comments on commit dcdc1a5

Please sign in to comment.