Skip to content

Commit

Permalink
fix: type import linting error
Browse files Browse the repository at this point in the history
  • Loading branch information
drewlyton committed Oct 1, 2024
1 parent 3117cb9 commit 1978272
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ import {catchError, map, type Observable, of, startWith} from 'rxjs'
import {type Role, useClient, useProjectId, useTranslation, useZIndex} from 'sanity'
import {styled} from 'styled-components'

import {type AccessRequest} from '../../../core/studio/screens'
import {Dialog} from '../../../ui-components'
import {structureLocaleNamespace} from '../../i18n'
import {AskToEditRequestSent} from './__telemetry__/RequestPermissionDialog.telemetry'
import {type AccessRequest} from './useRoleRequestsStatus'

const MAX_NOTE_LENGTH = 150

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,19 @@ import {from, of} from 'rxjs'
import {catchError, map, startWith} from 'rxjs/operators'
import {useClient, useProjectId} from 'sanity'

import {type AccessRequest} from '../../../core/studio/screens'
export interface AccessRequest {
id: string
status: 'pending' | 'accepted' | 'declined'
resourceId: string
resourceType: 'project'
createdAt: string
updatedAt: string
updatedByUserId: string
requestedByUserId: string
requestedRole: string
type: 'access' | 'role'
note: string
}

export const useRoleRequestsStatus = () => {
const client = useClient({apiVersion: '2024-07-01'})
Expand Down

0 comments on commit 1978272

Please sign in to comment.