Commit 6e082cfc authored by Imran Salam's avatar Imran Salam
Browse files

separate global helper functions from global config

parent 4f2d7e81
Pipeline #15182 failed with stage
in 3 minutes
......@@ -6,13 +6,3 @@ export enum BreakpointWidth {
MEDIUM = 900,
LARGE = 1400
}
export function getBreakpoint(width: number): BreakpointWidth {
if (width > BreakpointWidth.LARGE) {
return BreakpointWidth.LARGE;
} else if (width > BreakpointWidth.MEDIUM) {
return BreakpointWidth.MEDIUM;
} else {
return BreakpointWidth.SMALL;
}
}
import { BreakpointWidth } from './globalConfig';
export const getBreakpoint = (width: number): BreakpointWidth => {
if (width > BreakpointWidth.LARGE) {
return BreakpointWidth.LARGE;
} else if (width > BreakpointWidth.MEDIUM) {
return BreakpointWidth.MEDIUM;
} else {
return BreakpointWidth.SMALL;
}
};
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment