Skip to content

Commit

Permalink
refactor: use consistent array notation
Browse files Browse the repository at this point in the history
  • Loading branch information
mario-zelger committed Feb 5, 2024
1 parent c517ccd commit dfa282b
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/components/CalendarTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Task, {TaskT} from './Task';
import {useTranslation} from "react-i18next";

type Props = {
tasks: Array<TaskT>
tasks: TaskT[]
prefix: string
}

Expand Down
2 changes: 1 addition & 1 deletion src/components/Chapter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export type ChapterT = {
slug_with_section: string
icon: IconT
section: SectionT
responsible: Array<Role>
responsible: Role[]
}

type ChapterProps = {
Expand Down
2 changes: 1 addition & 1 deletion src/components/IcsDownload.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const A = styled.a`
`

type Props = {
tasks: Array<TaskT>
tasks: TaskT[]
calendarTitlePrefix: string
}

Expand Down
2 changes: 1 addition & 1 deletion src/components/Section.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {LinkComponent} from '../helper/MarkdownComponents'
import Chapter, {ChapterT} from './Chapter'

export type SectionT = {
chapters: Array<ChapterT>
chapters: ChapterT[]
sorting: number
title: string
content: string
Expand Down
2 changes: 1 addition & 1 deletion src/components/Target.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {useTranslation} from 'react-i18next'
import {Role} from './Chapter'

type Props = {
targets: Array<Role>
targets: Role[]
}

function Target(props: Props) {
Expand Down

0 comments on commit dfa282b

Please sign in to comment.