-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pakkeoppdateringer060125 vol1 (#3595)
* minor & patch * allow any * nodejs22 & webpack-cli * uuid * stylelint * remove stylelint * remove stylelint * react-dom * node22 * resolutions på react * yarn install * ny yarn.lock for å se om det hjelper * Revert "ny yarn.lock for å se om det hjelper" This reverts commit 0ebd1f8. * Reapply "ny yarn.lock for å se om det hjelper" This reverts commit 2f79847. * Revert "ny yarn.lock for å se om det hjelper" This reverts commit 0ebd1f8. * Revert "yarn install" This reverts commit 40f5400. * Revert "resolutions på react" This reverts commit ccde07b. * Revert "node22" This reverts commit 3bcf2d9. * Reapply "node22" This reverts commit c77acbc. * Revert "react-dom" This reverts commit ff11fb1. * react 18.3.1 * Revert "allow any" This reverts commit 4f2571c. * Reapply "allow any" This reverts commit 5dfbbd7. * ft-plattform-komponenter breaking i 5.3.1 * nå også med oppdatert lockfile * major updates * fjerne resolution * fiks chai issues * fjerner stylelint-greier * rydder * bump minor/patch igjen * endringslogg major bomp * Revert "endringslogg major bomp" This reverts commit 4ee5dca.
- Loading branch information
Showing
24 changed files
with
553 additions
and
1,389 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 5 additions & 11 deletions
16
src/client/app/saksbehandler/behandlingskoer/components/menu/MenuButton.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,21 @@ | ||
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
import { Detail } from '@navikt/ds-react'; | ||
import * as styles from './menuButton.css'; | ||
|
||
type TsProps = Readonly<{ | ||
onClick: () => void; | ||
children: JSX.Element; | ||
}>; | ||
interface MenuButtonProps { | ||
onClick(...args: unknown[]): unknown; | ||
children: React.ReactElement; | ||
} | ||
|
||
/** | ||
* MenuButton | ||
* | ||
* Presentasjonskomponent. Lager lenker i behandlingsmeny | ||
*/ | ||
const MenuButton = React.forwardRef(({ onClick, children }: TsProps, ref) => ( | ||
const MenuButton = React.forwardRef<HTMLElement, MenuButtonProps>(({ onClick, children }: TsProps, ref) => ( | ||
<button ref={ref} className={styles.button} onClick={onClick} type="button"> | ||
<Detail>{children}</Detail> | ||
</button> | ||
)); | ||
|
||
MenuButton.propTypes = { | ||
onClick: PropTypes.func.isRequired, | ||
children: PropTypes.element.isRequired, | ||
}; | ||
|
||
export default MenuButton; |
Oops, something went wrong.