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

View File

@@ -1,4 +1,5 @@
import { KeyIcon } from '@heroicons/vue/24/solid';
import { UserProfileLink } from '~/types/userProfile';
export enum ServerState {
BASIC = 'BASIC',
@@ -42,11 +43,8 @@ export interface Server {
// @todo convert to object with text and click payload
export type ServerStateDataActionType = 'signIn'|'signOut'|'purchase'|'redeem'|'upgrade'|'recover'|'replace'|'trialExtend'|'trialStart';
export interface ServerStateDataAction {
click: any; // @todo be more specific
icon?: typeof KeyIcon
export interface ServerStateDataAction extends UserProfileLink {
name: ServerStateDataActionType;
text: string;
}
export interface ServerStateDataError {

View File

@@ -1,10 +1,12 @@
import { ArrowTopRightOnSquareIcon } from '@heroicons/vue/24/solid';
export interface UserProfileLink {
click?: any; // @todo be more specific
emphasize?: boolean;
external?: boolean;
href: string;
href?: string;
icon?: typeof ArrowTopRightOnSquareIcon;
name?: string;
text: string;
title?: string;
}