1
0
Fork 0
mirror of https://github.com/pawelmalak/flame.git synced 2025-07-24 05:39:35 +02:00

Fixed react errors while importing named exports from JSON files

This commit is contained in:
Paweł Malak 2023-07-20 19:04:31 +02:00
parent 35ae5f9ee7
commit 188c5bc04b
3 changed files with 9 additions and 3 deletions

View file

@ -1,9 +1,11 @@
import { queries } from './searchQueries.json';
import searchQueries from './searchQueries.json';
import { SearchResult } from '../interfaces';
import { store } from '../store/store';
import { isUrlOrIp } from '.';
export const searchParser = (searchQuery: string): SearchResult => {
const queries = searchQueries.queries;
const result: SearchResult = {
isLocal: false,
isURL: false,