refactor(types): UserProfileLink

This commit is contained in:
Zack Spear
2023-05-31 15:42:14 -07:00
committed by Zack Spear
parent 2a61601c5f
commit 2ef113dcb2
2 changed files with 5 additions and 5 deletions
+2 -4
View File
@@ -1,4 +1,5 @@
import { KeyIcon } from '@heroicons/vue/24/solid'; import { KeyIcon } from '@heroicons/vue/24/solid';
import { UserProfileLink } from '~/types/userProfile';
export enum ServerState { export enum ServerState {
BASIC = 'BASIC', BASIC = 'BASIC',
@@ -42,11 +43,8 @@ export interface Server {
// @todo convert to object with text and click payload // @todo convert to object with text and click payload
export type ServerStateDataActionType = 'signIn'|'signOut'|'purchase'|'redeem'|'upgrade'|'recover'|'replace'|'trialExtend'|'trialStart'; export type ServerStateDataActionType = 'signIn'|'signOut'|'purchase'|'redeem'|'upgrade'|'recover'|'replace'|'trialExtend'|'trialStart';
export interface ServerStateDataAction { export interface ServerStateDataAction extends UserProfileLink {
click: any; // @todo be more specific
icon?: typeof KeyIcon
name: ServerStateDataActionType; name: ServerStateDataActionType;
text: string;
} }
export interface ServerStateDataError { export interface ServerStateDataError {
+3 -1
View File
@@ -1,10 +1,12 @@
import { ArrowTopRightOnSquareIcon } from '@heroicons/vue/24/solid'; import { ArrowTopRightOnSquareIcon } from '@heroicons/vue/24/solid';
export interface UserProfileLink { export interface UserProfileLink {
click?: any; // @todo be more specific
emphasize?: boolean; emphasize?: boolean;
external?: boolean; external?: boolean;
href: string; href?: string;
icon?: typeof ArrowTopRightOnSquareIcon; icon?: typeof ArrowTopRightOnSquareIcon;
name?: string;
text: string; text: string;
title?: string; title?: string;
} }