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:
parent
35ae5f9ee7
commit
188c5bc04b
3 changed files with 9 additions and 3 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue