Skip to content

Commit

Permalink
chore(deletetile): edit modal size and button
Browse files Browse the repository at this point in the history
  • Loading branch information
SharmaTarun1111111 committed Jul 5, 2023
1 parent 26a3f83 commit 876cfa5
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { useState } from 'react'
import { ButtonGroup } from '@entur/button'
import { ButtonGroup, SecondaryButton } from '@entur/button'
import { Modal } from '@entur/modal'
import { Paragraph } from '@entur/typography'
import { NegativeButton, PrimaryButton, TertiaryButton } from '@entur/button'
import { PrimaryButton, TertiaryButton } from '@entur/button'
import { DeleteIcon } from '@entur/icons'
import { useSettingsDispatch } from 'Admin/utils/contexts'

Expand All @@ -12,12 +12,12 @@ function DeleteButton({ uuid }: { uuid: string }) {

return (
<>
<Modal open={isOpen} onDismiss={() => setOpen(false)} size="medium">
<Modal open={isOpen} onDismiss={() => setOpen(false)} size="small">
<Paragraph>
Er du sikker på at du vil slette denne holdeplassen?
</Paragraph>
<ButtonGroup>
<NegativeButton
<PrimaryButton
onClick={() => {
setOpen(false)
dispatch({
Expand All @@ -27,10 +27,10 @@ function DeleteButton({ uuid }: { uuid: string }) {
}}
>
Ja, slett
</NegativeButton>
<PrimaryButton onClick={() => setOpen(false)}>
Nei, behold
</PrimaryButton>
<SecondaryButton onClick={() => setOpen(false)}>
Nei, behold
</SecondaryButton>
</ButtonGroup>
</Modal>

Expand Down

0 comments on commit 876cfa5

Please sign in to comment.