nicolium: move types/pl-fe to me reducer
Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
@ -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) => {
|
||||
|
||||
@ -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}' },
|
||||
|
||||
@ -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 };
|
||||
|
||||
@ -1,3 +0,0 @@
|
||||
type Me = string | null | false;
|
||||
|
||||
export { Me };
|
||||
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user