10 lines
176 B
JavaScript
10 lines
176 B
JavaScript
|
import { ACTIVE_FILE } from 'actions/types';
|
||
|
|
||
|
export default function(state = -1, action) {
|
||
|
if (action.type === ACTIVE_FILE) {
|
||
|
return action.file;
|
||
|
}
|
||
|
|
||
|
return state;
|
||
|
}
|