Skip to content
Snippets Groups Projects
Unverified Commit fce5a811 authored by Gustavo Saiani's avatar Gustavo Saiani Committed by GitHub
Browse files

Move Props to top (#24217)

parent f0e2a93f
No related branches found
No related tags found
No related merge requests found
......@@ -26,6 +26,16 @@ import {
NumericInput,
} from "./RelativeDatePicker.styled";
type Props = {
className?: string;
filter: Filter;
onFilterChange: (filter: any[]) => void;
formatter: (value: number) => number;
offsetFormatter: (value: number) => number;
primaryColor?: string;
reverseIconDirection?: boolean;
};
export const PastPicker = (props: Props) => (
<RelativeDatePicker {...props} formatter={value => value * -1} />
);
......@@ -89,16 +99,6 @@ function getCurrentIntervalName(filter: Filter) {
return null;
}
type Props = {
className?: string;
filter: Filter;
onFilterChange: (filter: any[]) => void;
formatter: (value: number) => number;
offsetFormatter: (value: number) => number;
primaryColor?: string;
reverseIconDirection?: boolean;
};
const RelativeDatePicker: React.FC<Props> = props => {
const {
filter,
......@@ -151,6 +151,7 @@ const RelativeDatePicker: React.FC<Props> = props => {
</OptionButton>
</OptionsContainer>
);
return (
<GridContainer
className={className}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment