mirror of
https://github.com/logto-io/logto.git
synced 2024-12-16 20:26:19 -05:00
chore(console): replace as
with satisfies
(#3067)
This commit is contained in:
parent
d3e786ec80
commit
785ee506ad
1 changed files with 2 additions and 3 deletions
|
@ -26,7 +26,7 @@ import { useTheme } from '@/hooks/use-theme';
|
|||
import * as detailsStyles from '@/scss/details.module.scss';
|
||||
|
||||
import * as styles from './index.module.scss';
|
||||
import type { ApiResourceDetailsOutletContext } from './types';
|
||||
import { ApiResourceDetailsOutletContext } from './types';
|
||||
|
||||
const ApiResourceDetails = () => {
|
||||
const { pathname } = useLocation();
|
||||
|
@ -132,7 +132,6 @@ const ApiResourceDetails = () => {
|
|||
</TabNav>
|
||||
<Outlet
|
||||
context={
|
||||
// eslint-disable-next-line no-restricted-syntax
|
||||
{
|
||||
resource: data,
|
||||
isDeleting,
|
||||
|
@ -140,7 +139,7 @@ const ApiResourceDetails = () => {
|
|||
onResourceUpdated: (resource: Resource) => {
|
||||
void mutate(resource);
|
||||
},
|
||||
} as ApiResourceDetailsOutletContext
|
||||
} satisfies ApiResourceDetailsOutletContext
|
||||
}
|
||||
/>
|
||||
</>
|
||||
|
|
Loading…
Reference in a new issue