mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2026-07-21 19:21:57 +00:00
Migrated selectServer action to RTK and moved loadMercureInfo to an action listener
This commit is contained in:
@@ -1,13 +1,11 @@
|
||||
import { createAction, PayloadAction } from '@reduxjs/toolkit';
|
||||
import { CreateVisit } from '../types';
|
||||
|
||||
const CREATE_VISITS = 'shlink/visitCreation/CREATE_VISITS';
|
||||
|
||||
export type CreateVisitsAction = PayloadAction<{
|
||||
createdVisits: CreateVisit[];
|
||||
}>;
|
||||
|
||||
export const createNewVisits = createAction(
|
||||
CREATE_VISITS,
|
||||
'shlink/visitCreation/createNewVisits',
|
||||
(createdVisits: CreateVisit[]) => ({ payload: { createdVisits } }),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user