This commit is contained in:
devil_1nc 2023-12-27 17:09:58 +04:00
parent d64caec228
commit b5ebef6654
5 changed files with 30 additions and 15 deletions

File diff suppressed because one or more lines are too long

View File

@ -1,7 +1,7 @@
import { useState } from 'react';
import axios from 'axios';
import MovieCard from './MovieCard.jsx';
import Input from '../components/input/Input.jsx'; // Замените на фактический путь
//import Input from '../components/input/Input.jsx'; // Замените на фактический путь
import { Button } from 'react-bootstrap';
const useMovieFilter = () => {
@ -27,18 +27,12 @@ const useMovieFilter = () => {
};
return (
<>
<Input
name="search"
label="Search movies..."
value={searchText}
onChange={handleSearchChange}
type="text"
placeholder="Search movies..."
onKeyPress={handleKeyPress}
/>
<Button className='col-5 col-lg-2 m-0 ms-2' type='submit' variant='primary' onClick={handleSearch}>
Поиск
</Button>
<div class="input-group mb-3">
<input name="search "type="text" value={searchText} onChange={handleSearchChange} className="form-control" placeholder="Введите название фильма" aria-label="Search movies..." aria-describedby="button-addon2" onKeyUp={handleKeyPress}/>
<button class="btn btn-outline-secondary" type="button" id="button-addon2" onClick={handleSearch}>Поиск</button>
</div>
<div className="movie-container">
{searchResult.map((movie) => (

View File

@ -41,6 +41,9 @@ const Lines = () => {
return (
<>
<Button variant='info' onClick={() => showFormModal()}>
Добавить товар (диалог)
</Button>
<Button as={Link} to='/page-edit' variant='success'>
Добавить фильм
</Button>

View File

@ -4,7 +4,7 @@ body {
margin: 0;
padding: 0;
min-height: 150vh;
}
.header {

View File

@ -4,7 +4,7 @@ const SearchPage = () => {
return (
<>
<h1>Категории</h1>
<h1>Поиск</h1>
<MovieList />