Skip to content

Commit

Permalink
style(edit): publish board position and bg color (#1796)
Browse files Browse the repository at this point in the history
  • Loading branch information
purusott authored Jan 23, 2025
1 parent 52c1077 commit cb8f93d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Button } from '@entur/button'
import { TBoard } from 'types/settings'
import { refreshBoard } from './actions'
import { useToast } from '@entur/alert'
import { RefreshIcon } from '@entur/icons'

import { usePostHog } from 'posthog-js/react'

function RefreshButton({ board }: { board: TBoard }) {
Expand All @@ -26,9 +26,8 @@ function RefreshButton({ board }: { board: TBoard }) {
})
}
return (
<Button variant="secondary" onClick={refresh} className="flex flex-row">
<Button variant="success" onClick={refresh} className="flex flex-row">
Publiser tavle
<RefreshIcon inline />
</Button>
)
}
Expand Down
2 changes: 1 addition & 1 deletion tavla/app/(admin)/edit/[id]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ export default async function EditPage(props: TProps) {
</Heading1>
<div className="flex flex-col md:flex-row md:items-center gap-4">
<Open bid={board.id} type="button" />
<Copy bid={board.id} type="button" />
<RefreshButton board={board} />
<Copy bid={board.id} type="button" />
<ActionsMenu board={board} oid={organization?.id} />
</div>
</div>
Expand Down

0 comments on commit cb8f93d

Please sign in to comment.