All files / Helpers getDeviceConfig.js

53.84% Statements 7/13
55% Branches 11/20
100% Functions 1/1
53.84% Lines 7/13

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 1520x 90x 6x 84x   84x   84x 84x            
export const getDeviceConfig = width => {
    if (width < 640) {
        return 'xs';
    } else Iif (width >= 640 && width < 768) {
        return 'sm';
    } else Iif (width >= 768 && width < 1024) {
        return 'md';
    } else if (width >= 1024 && width < 1280) {
        return 'lg';
    } else Eif (width >= 1280 && width < 1536) {
        return 'xl';
    } else if (width >= 1536) {
        return '2xl';
    }
}