Skip to content

Commit 62e9180

Browse files
committed
fix build
1 parent 6db15cd commit 62e9180

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

src/demo/App.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import {
55
PrimaryButton,
66
SecondaryButton,
77
OutlineButton,
8-
TextLink,
98
DarkModeToggle,
109
SlideOver,
1110
ModalDialog,
@@ -18,15 +17,13 @@ import {
1817
NavListItem,
1918
Breadcrumbs,
2019
Breadcrumb,
21-
useFormatters,
2220
} from '../index'
2321
import { Icons, bookings, forecasts, tracks } from './data'
2422

2523
export default function App() {
2624
const [show, setShow] = useState(false)
2725
const [slideOver, setSlideOver] = useState(false)
2826
const [modal, setModal] = useState(false)
29-
const { formatDate, currency, relativeTime } = useFormatters()
3027

3128
const Formats = {
3229
currency: { method: 'currency' },

src/demo/data.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ const Coupons = {
6565
}
6666

6767
let bookingId = 0
68-
function booking(name, roomType, roomNumber, cost, email, couponId) {
68+
function booking(name: string, roomType: RoomType, roomNumber: number, cost: number, email: string, couponId: keyof typeof Coupons) {
6969
bookingId++
7070
const bookingStartDate = new Date(Date.now() + bookingId * 86400)
7171
const bookingEndDate = new Date(Date.now() + (bookingId + 7) * 86400)
@@ -138,8 +138,8 @@ export const forecasts = [
138138

139139

140140
let trackId = 0
141-
function track(name, artist, album, year) {
142-
return { id:++trackId, name, artist, album, year }
141+
function track(name: string, artist: string, album: string, year: number) {
142+
return { id:++trackId, name, artist, album, year }
143143
}
144144

145145
export const tracks = [
@@ -172,11 +172,11 @@ export const allTypesJson = {
172172
}
173173

174174
let playerId = 0
175-
function player(firstName, lastName, phoneNumbers, profile) {
175+
function player(firstName: string, lastName: string, phoneNumbers: any[], profile: any) {
176176
let email = `${firstName.toLowerCase()}@${lastName.toLowerCase()}.com`
177177
return { id:++playerId, firstName, lastName, email, phoneNumbers, profile }
178178
}
179-
function profile(userName, role, region, highScore, gamesPlayed, coverUrl) {
179+
function profile(userName: string, role: string, region: string, highScore: number, gamesPlayed: number, coverUrl: string) {
180180
return { userName, role, region, highScore, gamesPlayed, coverUrl, createdBy:`${userName}@email.com` }
181181
}
182182

0 commit comments

Comments
 (0)