mirror of
https://github.com/mattermost/mattermost-mobile.git
synced 2026-11-06 02:40:15 +00:00
15 lines
340 B
JavaScript
15 lines
340 B
JavaScript
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.txt for license information.
|
|
|
|
import {DeviceTypes} from 'app/constants';
|
|
|
|
export default function isTablet(state = false, action) {
|
|
switch (action.type) {
|
|
case DeviceTypes.DEVICE_TYPE_CHANGED:
|
|
return action.data;
|
|
}
|
|
|
|
return state;
|
|
}
|
|
|