Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: sort and filter for PR and issue tab working #1931

Merged
merged 8 commits into from
Aug 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import colors from '../../constants/colors';
import styled from 'styled-components';
import styled, { css } from 'styled-components';

export const DropdownContainer = styled.div`
display: flex;
Expand All @@ -22,7 +22,7 @@ export const DropdownOptionsHeadingText = styled.span`
font-weight: 700;
`;

export const DropdownBtn = styled.button`
export const DropdownBtn = styled.button<{ flat?: boolean }>`
display: flex;
flex-grow: 1;
border-radius: 8px;
Expand All @@ -35,9 +35,19 @@ export const DropdownBtn = styled.button`
min-width: 70px;
outline: none;
@media (min-width: 768px) {
gap: 8px;
${(props) =>
!props.flat &&
css`
gap: 8px;
`}
min-width: 80px;
}
${(props) =>
props.flat &&
css`
border: none;
gap: 2px;
`}
`;

export const DropdownOption = styled.li`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,15 @@ interface FilterDropdownProps {
items?: string[];
selected?: string;
itemsColors?: string[];
flat?: boolean;
selectOption?: (value: string) => void;
}
export default function FilterDropdown({
name,
items,
selected,
itemsColors,
flat,
selectOption,
}: FilterDropdownProps) {
const [showOptions, setShowOptions] = useState(false);
Expand Down Expand Up @@ -62,7 +64,7 @@ export default function FilterDropdown({
});
return (
<DropdownContainer ref={ref}>
<DropdownBtn onClick={toggleOption}>
<DropdownBtn flat={flat} onClick={toggleOption}>
<DropdownBtnText>{name}</DropdownBtnText>
<CaretIcon active={false} />
</DropdownBtn>
Expand Down
94 changes: 0 additions & 94 deletions cra-rxjs-styled-components/src/components/issue/Issue.stories.tsx

This file was deleted.

This file was deleted.

112 changes: 0 additions & 112 deletions cra-rxjs-styled-components/src/components/issue/Issue/Issue.style.tsx

This file was deleted.

This file was deleted.

Loading
Loading