Skip to content

Commit

Permalink
fix: allow initiating plugin with no options object (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcusforsberg authored Jun 7, 2024
1 parent 14edf90 commit ad969ff
Show file tree
Hide file tree
Showing 2 changed files with 192 additions and 192 deletions.
2 changes: 1 addition & 1 deletion src/components/LinkTypeInput.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import {ChevronDownIcon} from '@sanity/icons'
import {Button, Menu, MenuButton, MenuItem} from '@sanity/ui'
import {AtSignIcon, GlobeIcon, LinkIcon, PhoneIcon} from 'lucide-react'
import {useEffect} from 'react'
import {set, type StringInputProps} from 'sanity'
import styled from 'styled-components'

import {CustomLinkType, LinkFieldPluginOptions, LinkType} from '../types'
import {useEffect} from 'react'

const defaultLinkTypes: LinkType[] = [
{title: 'Internal', value: 'internal', icon: LinkIcon},
Expand Down
Loading

0 comments on commit ad969ff

Please sign in to comment.