pl-fe: migrate /api/v*/instance to tanstack query
Signed-off-by: mkljczk <git@mkljczk.pl>
This commit is contained in:
@ -56,10 +56,6 @@ const getAuthUserUrl = (state: RootState) => {
|
||||
].filter(url => url).find(isURL);
|
||||
};
|
||||
|
||||
/** Get the VAPID public key. */
|
||||
const getVapidKey = (state: RootState) =>
|
||||
state.auth.app?.vapid_key || state.instance.configuration.vapid.public_key;
|
||||
|
||||
const getMeUrl = (state: RootState) => selectOwnAccount(state)?.url;
|
||||
|
||||
export {
|
||||
@ -71,6 +67,5 @@ export {
|
||||
getAccessToken,
|
||||
getAuthUserId,
|
||||
getAuthUserUrl,
|
||||
getVapidKey,
|
||||
getMeUrl,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user