Files
next-learn/dashboard/15-final/app/lib/definitions.tsx
Delba de Oliveira 5f38f0fa81 Polish Mobile Styles 💅🏼 and update code for chapters 1-5 (#150)
* Add local date formatting

* Add dashboard hero image

* Update hero styles

* Polish login form

* Use Next.js symbol for logo

* Use Next.js symbol for favicon

* Use img instead of Image

* Add mobile styles to login form

* Polish nav styles to fit logo

* Fix build error

* Create og-image.png

* Remove unused code

* Replace svg logo with png

* Update Images and Links

* Misc

* Remove topnav

* Remove dummy text from cards

* Remove gradient

* Adjust button color

* Fix table horizontal scroll

* Misc

* Fix table UI bug

* Remove duplicate package-lock files

* Polish invoice form

* Rename delete button

* Misc

* Run prettier

* Fix search and pagination on mobile

* Fix pagination border px bug

* Update code to match course

* Rename global -> globals

* 💅 Home Page

* Test placeholder blur

* Use 1.5x image rather than 2x

* Update root layout

* Use <main> for pages

* Make sidebar a server component

* Don't use index for React key
2023-09-13 10:44:25 +01:00

32 lines
676 B
TypeScript

// This file contains type definitions for you data.
// These describe the shape of the data, and what data type each property should accept.
export type User = {
id: number;
name: string;
email: string;
password: string;
};
export type Customer = {
id: number;
name: string;
email: string;
imageUrl: string;
};
export type Invoice = {
id: number;
customerId: number;
amount: number;
// In TypeScript, this is called a string union type.
// It means that the "status" property can only be one of the two strings: 'pending' or 'paid'.
status: 'pending' | 'paid';
date: string;
};
export type Revenue = {
month: string;
revenue: number;
};