Skip to content

Commit 47e43af

Browse files
committed
Remove EXPIRES column and content from confirmation modal
1 parent 366107f commit 47e43af

File tree

1 file changed

+1
-30
lines changed

1 file changed

+1
-30
lines changed

app/pages/system/silos/SiloScimTab.tsx

Lines changed: 1 addition & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import { useCallback, useMemo, useState } from 'react'
1111
import { type LoaderFunctionArgs } from 'react-router'
1212

1313
import { AccessToken24Icon, OpenLink12Icon } from '@oxide/design-system/icons/react'
14-
import { Badge } from '@oxide/design-system/ui'
1514

1615
import {
1716
apiQueryClient,
@@ -28,7 +27,6 @@ import { Table } from '~/table/Table'
2827
import { CardBlock } from '~/ui/lib/CardBlock'
2928
import { CopyToClipboard } from '~/ui/lib/CopyToClipboard'
3029
import { CreateButton } from '~/ui/lib/CreateButton'
31-
import { DateTime } from '~/ui/lib/DateTime'
3230
import { EmptyMessage } from '~/ui/lib/EmptyMessage'
3331
import { Message } from '~/ui/lib/Message'
3432
import { Modal } from '~/ui/lib/Modal'
@@ -71,7 +69,6 @@ export default function SiloScimTab() {
7169
id: string
7270
bearerToken: string
7371
timeCreated: Date
74-
timeExpires?: Date | null
7572
} | null>(null)
7673

7774
const deleteToken = useApiMutation('scimTokenDelete', {
@@ -106,17 +103,6 @@ export default function SiloScimTab() {
106103
),
107104
}),
108105
colHelper.accessor('timeCreated', Columns.timeCreated),
109-
colHelper.accessor('timeExpires', {
110-
header: 'Expires',
111-
cell: (info) => {
112-
const expires = info.getValue()
113-
return expires ? (
114-
<DateTime date={expires} />
115-
) : (
116-
<Badge color="neutral">Never</Badge>
117-
)
118-
},
119-
}),
120106
],
121107
[]
122108
)
@@ -193,12 +179,7 @@ function CreateTokenModal({
193179
}: {
194180
siloSelector: { silo: string }
195181
onDismiss: () => void
196-
onSuccess: (token: {
197-
id: string
198-
bearerToken: string
199-
timeCreated: Date
200-
timeExpires?: Date | null
201-
}) => void
182+
onSuccess: (token: { id: string; bearerToken: string; timeCreated: Date }) => void
202183
}) {
203184
const createToken = useApiMutation('scimTokenCreate', {
204185
onSuccess(token) {
@@ -239,22 +220,12 @@ function TokenCreatedModal({
239220
id: string
240221
bearerToken: string
241222
timeCreated: Date
242-
timeExpires?: Date | null
243223
}
244224
onDismiss: () => void
245225
}) {
246226
return (
247227
<Modal isOpen onDismiss={onDismiss} title="Create token">
248228
<Modal.Section>
249-
<div className="text-sans-sm border-default rounded border p-3">
250-
<div className="text-mono-sm text-tertiary mb-1 uppercase">Expires</div>
251-
{token.timeExpires ? (
252-
<DateTime date={token.timeExpires} />
253-
) : (
254-
<Badge color="neutral">Never</Badge>
255-
)}
256-
</div>
257-
258229
<Message
259230
variant="notice"
260231
content="This is the only time you'll see this token. Copy it now and store it securely."

0 commit comments

Comments
 (0)