Skip to content

Commit 65061f1

Browse files
committed
wrapped the div into FilterWrapper
Signed-off-by: Divyanshu Gupta <[email protected]>
1 parent a61d99e commit 65061f1

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

src/sections/Community/Members-grid/Dropdown.js

+3-12
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import Select from "react-select";
77
import { Container } from "../../../reusecore/Layout";
88
import PageHeader from "../../../reusecore/PageHeader";
99
import { selectStyles, dropdownTheme } from "./membersGrid.style";
10+
import { FilterWrapper } from "./membersGrid.style";
1011

1112
const Dropdown = (props) => {
1213
return (
@@ -17,16 +18,7 @@ const Dropdown = (props) => {
1718
subtitle="A warm and welcoming collection of open sourcers"
1819
/>
1920
<Container>
20-
<div
21-
style={{
22-
display: "flex",
23-
position: "relative",
24-
alignItems: "center",
25-
justifyContent: "flex-end",
26-
width: "100%",
27-
zIndex: 100
28-
}}
29-
>
21+
<FilterWrapper>
3022
<Select
3123
name="Filter Members"
3224
defaultValue={[props.defaultOption]}
@@ -38,8 +30,7 @@ const Dropdown = (props) => {
3830
theme={dropdownTheme}
3931
isMulti
4032
/>
41-
</div>
42-
33+
</FilterWrapper>
4334
<br />
4435
</Container>
4536
</>

src/sections/Community/Members-grid/membersGrid.style.js

+9
Original file line numberDiff line numberDiff line change
@@ -240,3 +240,12 @@ export const MembersGridWrapper = styled.div`
240240
}
241241
}
242242
`;
243+
244+
export const FilterWrapper = styled.div`
245+
display: flex;
246+
position: relative;
247+
align-items: center;
248+
justify-content: flex-end;
249+
width: 100%;
250+
z-index: 100
251+
`;

0 commit comments

Comments
 (0)