Глобальный рефакторинг компонетов
This commit is contained in:
parent
ba9806a85a
commit
27804e9345
9 changed files with 89 additions and 33 deletions
79
frontend/src/globalInterfaces.ts
Normal file
79
frontend/src/globalInterfaces.ts
Normal file
|
|
@ -0,0 +1,79 @@
|
|||
export interface Post {
|
||||
id: string;
|
||||
slug: string;
|
||||
title: string;
|
||||
description: string;
|
||||
author: string;
|
||||
category: string;
|
||||
categoryColor: string;
|
||||
date: string;
|
||||
readTime: string;
|
||||
image: string;
|
||||
content?: string;
|
||||
draft: boolean;
|
||||
}
|
||||
|
||||
export interface EmailOptions {
|
||||
to: string;
|
||||
subject: string;
|
||||
html: string;
|
||||
}
|
||||
|
||||
export interface Review {
|
||||
id: number;
|
||||
name: string;
|
||||
car: string;
|
||||
text: string;
|
||||
rating: number;
|
||||
avatar: { initial: string; color: string; };
|
||||
date: string;
|
||||
votesCount: number;
|
||||
isHelpful: boolean;
|
||||
}
|
||||
|
||||
export interface Case {
|
||||
id: number;
|
||||
title: string;
|
||||
category: CaseCategory;
|
||||
description: string;
|
||||
result: string;
|
||||
clientStory: string;
|
||||
amount: string;
|
||||
duration: string;
|
||||
image: string;
|
||||
tags: string[];
|
||||
featured?: boolean;
|
||||
}
|
||||
|
||||
export type CaseCategory =
|
||||
| "insurance"
|
||||
| "rights"
|
||||
| "accident"
|
||||
| "court"
|
||||
| "consultation";
|
||||
|
||||
export interface DocumentItem {
|
||||
id: string;
|
||||
title: string;
|
||||
description: string;
|
||||
fileSize: string;
|
||||
fileType: 'pdf' | 'docx' | 'xlsx' | 'zip';
|
||||
downloadUrl: string;
|
||||
category: string;
|
||||
tags?: string[];
|
||||
}
|
||||
|
||||
export interface NavLink {
|
||||
name: string;
|
||||
url: string;
|
||||
}
|
||||
|
||||
export interface CompanyInfo {
|
||||
name: string;
|
||||
fullName: string;
|
||||
phone: string;
|
||||
phoneClean: string;
|
||||
email: string;
|
||||
address: string;
|
||||
workHours: string;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue