Skip to content

Commit

Permalink
fix: remove display from component
Browse files Browse the repository at this point in the history
  • Loading branch information
Melichka committed Sep 2, 2024
1 parent 48ac0e5 commit ef087a6
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions application/frontend/src/components/SearchBar/SearchBar.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
import React from "react"

import ClearIcon from "@mui/icons-material/Clear"
import ViewListIcon from "@mui/icons-material/ViewList"
import ViewModuleIcon from "@mui/icons-material/ViewModule"
import { Grid, InputAdornment } from "@mui/material"

import { ClearButton, SearchContainer, SearchInput, ViewToggleButton } from "./SearchBar.styled"
import { ClearButton, SearchContainer, SearchInput } from "./SearchBar.styled"

interface SearchBarProps {
searchQuery: string
Expand All @@ -18,8 +16,6 @@ interface SearchBarProps {
export const SearchBar: React.FC<SearchBarProps> = ({
searchQuery,
onSearchChange,
viewMode,
onToggleViewMode,
onClearSearch,
}) => {
return (
Expand All @@ -41,11 +37,6 @@ export const SearchBar: React.FC<SearchBarProps> = ({
}}
/>
</Grid>
<Grid item xs={12} sm={6} container justifyContent="flex-end">
<ViewToggleButton onClick={onToggleViewMode}>
{viewMode === "list" ? <ViewModuleIcon /> : <ViewListIcon />}
</ViewToggleButton>
</Grid>
</SearchContainer>
)
}
Expand Down

0 comments on commit ef087a6

Please sign in to comment.