mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-11 07:55:52 +01:00
Update SearchBar
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { Input, TextInput, Text, ActionIcon, useMantineTheme } from '@mantine/core';
|
||||
import { Input, TextInput, Text, ActionIcon, useMantineTheme, Center } from '@mantine/core';
|
||||
import { useForm } from '@mantine/hooks';
|
||||
import { showNotification } from '@mantine/notifications';
|
||||
import { useState, useEffect } from 'react';
|
||||
@@ -11,7 +11,9 @@ export default function SearchBar(props: any) {
|
||||
searchBar: true,
|
||||
searchUrl: 'https://www.google.com/search?q=',
|
||||
});
|
||||
|
||||
const querryUrl = config.searchUrl || 'https://www.google.com/search?q=';
|
||||
|
||||
const form = useForm({
|
||||
initialValues: {
|
||||
querry: '',
|
||||
@@ -41,7 +43,6 @@ export default function SearchBar(props: any) {
|
||||
radius="xl"
|
||||
size="md"
|
||||
placeholder="Search the web"
|
||||
rightSectionWidth={42}
|
||||
{...props}
|
||||
{...form.getInputProps('querry')}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user