Skip to content

Commit

Permalink
chore: markRaw isn't needed with icons
Browse files Browse the repository at this point in the history
  • Loading branch information
brc-dd committed Aug 19, 2024
1 parent 2c526eb commit 0b52889
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions stories/components/STable.01_Playground.story.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import STable from 'sefirot/components/STable.vue'
import { createDropdown } from 'sefirot/composables/Dropdown'
import { useTable } from 'sefirot/composables/Table'
import { day } from 'sefirot/support/Day'
import { computed, markRaw, reactive, ref, shallowRef } from 'vue'
import { computed, reactive, ref, shallowRef } from 'vue'
import IconCheck from '~icons/ph/check-bold'
import IconImageSquare from '~icons/ph/image-square-bold'
import IconNotePencil from '~icons/ph/note-pencil-bold'
Expand Down Expand Up @@ -227,7 +227,7 @@ const table = useTable({
grow: true,
cell: (_, record) => ({
type: 'text',
icon: markRaw(IconImageSquare),
icon: IconImageSquare,
link: record.link
})
},
Expand Down Expand Up @@ -305,15 +305,15 @@ const table = useTable({
/* eslint-disable no-alert */
actions: [
{
icon: markRaw(IconCheck),
icon: IconCheck,
onClick: () => { alert('Publish') }
},
{
icon: markRaw(IconNotePencil),
icon: IconNotePencil,
onClick: () => { alert('Edit') }
},
{
icon: markRaw(IconTrash),
icon: IconTrash,
onClick: () => { alert('Delete') }
}
]
Expand Down

0 comments on commit 0b52889

Please sign in to comment.