mirror of
https://github.com/status-im/MyCrypto.git
synced 2025-02-02 06:16:06 +00:00
22 lines
737 B
TypeScript
22 lines
737 B
TypeScript
|
import { TypeKeys } from 'actions/schedule';
|
||
|
import {
|
||
|
SetCurrentScheduleTimestampAction,
|
||
|
SetCurrentScheduleTimezoneAction
|
||
|
} from '../actionTypes/scheduleTimestamp';
|
||
|
|
||
|
export type TSetCurrentScheduleTimestamp = typeof setCurrentScheduleTimestamp;
|
||
|
export const setCurrentScheduleTimestamp = (
|
||
|
payload: SetCurrentScheduleTimestampAction['payload']
|
||
|
): SetCurrentScheduleTimestampAction => ({
|
||
|
type: TypeKeys.CURRENT_SCHEDULE_TIMESTAMP_SET,
|
||
|
payload
|
||
|
});
|
||
|
|
||
|
export type TSetCurrentScheduleTimezone = typeof setCurrentScheduleTimezone;
|
||
|
export const setCurrentScheduleTimezone = (
|
||
|
payload: SetCurrentScheduleTimezoneAction['payload']
|
||
|
): SetCurrentScheduleTimezoneAction => ({
|
||
|
type: TypeKeys.CURRENT_SCHEDULE_TIMEZONE_SET,
|
||
|
payload
|
||
|
});
|