Skip to content

Commit

Permalink
Bump typescript from 5.3.3 to 5.4.2 (#99)
Browse files Browse the repository at this point in the history
  • Loading branch information
dependabot[bot] authored Mar 8, 2024
1 parent fb277cf commit f98600b
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 11 deletions.
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"eslint": "^8.57.0",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-refresh": "^0.4.5",
"typescript": "^5.2.2",
"typescript": "^5.4.2",
"vite": "^5.1.5"
}
}
11 changes: 8 additions & 3 deletions src/pages/SharedBucketDetail/SharedBucketDetail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,12 @@ import PageSkeleton from '../../components/PageSkeleton/PageSkeleton'
import FormattedTableColumn from '../../components/FormattedTableColumn'
import Table, { TableData } from '../../components/Table/Table'
import { ApiError } from '../../utils/services'
import { Team, SharedBucket, SharedBucketDetail, getSharedBucketDetailData } from '../../services/sharedBucketDetail'
import {
Team,
SharedBucket,
SharedBucketDetail as SharedBucketDetailType,
getSharedBucketDetailData,
} from '../../services/sharedBucketDetail'

import { DaplaCtrlContext } from '../../provider/DaplaCtrlProvider'

Expand All @@ -18,13 +23,13 @@ const SharedBucketDetail = () => {
const { setBreadcrumbTeamDetailDisplayName, setBreadcrumbBucketDetailDisplayName } = useContext(DaplaCtrlContext)
const [error, setError] = useState<ApiError | undefined>()
const [loadingSharedBucketsData, setLoadingSharedBucketsData] = useState<boolean>(true)
const [sharedBucketData, setSharedBucketData] = useState<SharedBucketDetail>()
const [sharedBucketData, setSharedBucketData] = useState<SharedBucketDetailType>()
const [sharedBucketTableData, setSharedBucketTableData] = useState<TableData['data']>()

const { teamId } = useParams<{ teamId: string }>()
const { shortName } = useParams<{ shortName: string }>()

const prepSharedBucketTableData = (response: SharedBucketDetail): TableData['data'] => {
const prepSharedBucketTableData = (response: SharedBucketDetailType): TableData['data'] => {
return (response['sharedBucket'] as SharedBucket).teams.map(({ display_name, uniform_name, section_name }) => {
return {
id: display_name ?? '',
Expand Down

0 comments on commit f98600b

Please sign in to comment.