Skip to content

Commit

Permalink
feature: add inbox action panel
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean Scully authored and Sean Scully committed Feb 19, 2024
1 parent c067132 commit 9e1e3f5
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { useTranslation } from "react-i18next";

import styles from "./actionPanel.module.css";

interface ActionPanelProps {
}

export function ActionPanel() {
const { t } = useTranslation();
return (
<nav className={styles.actionPanel}>

</nav>
);
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
.actionPanel {
display: flex;
justify-content: space-between;
align-items: center;
padding: 0.5em 1em;
flex-shrink: 0;
border-radius: 20px;
border: 2px solid #00315D;
background: #E6EFF8;
box-shadow: 0 4px 6px -2px rgba(0, 0, 0, 0.05), 0px 10px 15px -3px rgba(0, 0, 0, 0.10);
min-height: 50px;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { ActionPanel } from './ActionPanel.tsx'
2 changes: 2 additions & 0 deletions packages/frontend-design-poc/src/pages/Inbox/Inbox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { useState } from "react";
import { useTranslation } from "react-i18next";
import { PersonIcon, PersonSuitIcon, SealIcon, StarIcon } from '@navikt/aksel-icons';
import { InboxItems, InboxItem } from "../../components/InboxItem";
import { ActionPanel } from '../../components/ActionPanel';

export const Inbox = () => {
const { t } = useTranslation();
Expand All @@ -11,6 +12,7 @@ export const Inbox = () => {
return (
<section>
<h1>{t('example.your_inbox')}</h1>
<ActionPanel />
<InboxItems>
<InboxItem
checkboxValue="test"
Expand Down

0 comments on commit 9e1e3f5

Please sign in to comment.