nicolium: move types/pl-fe to me reducer

Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
nicole mikołajczyk
2026-02-26 21:10:45 +01:00
parent 40dfe678bb
commit 2a691b9572
5 changed files with 6 additions and 8 deletions

View File

@ -5,8 +5,8 @@ import { decode as decodeBase64 } from '@/utils/base64';
import { setBrowserSupport, setSubscription, clearSubscription } from './setter';
import type { Me } from '@/reducers/me';
import type { AppDispatch, RootState } from '@/store';
import type { Me } from '@/types/pl-fe';
// Taken from https://www.npmjs.com/package/web-push
const urlBase64ToUint8Array = (base64String: string) => {

View File

@ -57,8 +57,8 @@ import Popover from './ui/popover';
import type { Menu } from '@/components/dropdown-menu';
import type { Emoji as EmojiType } from '@/features/emoji';
import type { UnauthorizedModalAction } from '@/modals/unauthorized-modal';
import type { Me } from '@/reducers/me';
import type { SelectedStatus } from '@/selectors';
import type { Me } from '@/types/pl-fe';
const messages = defineMessages({
adminAccount: { id: 'status.admin_account', defaultMessage: 'Moderate @{name}' },

View File

@ -13,7 +13,8 @@ import {
} from '../actions/me';
import type { PlfeResponse } from '@/api';
import type { Me } from '@/types/pl-fe';
type Me = string | null | false;
const initialState: Me = null;
@ -42,4 +43,4 @@ const me = (state: Me = initialState, action: AuthAction | MeAction): Me => {
}
};
export { me as default };
export { me as default, type Me };

View File

@ -1,3 +0,0 @@
type Me = string | null | false;
export { Me };

View File

@ -21,7 +21,7 @@ import {
import KVStore from '@/storage/kv-store';
import type { Me } from '@/types/pl-fe';
import type { Me } from '@/reducers/me';
interface KVStoreRulesItem {
hashUrl?: string;