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

View File

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

View File

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

View File

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