Skip to content

Commit

Permalink
(fix) Tweak billing header UI (#67)
Browse files Browse the repository at this point in the history
* (fix) Tweak billing header UI

* Fixup
  • Loading branch information
denniskigen authored Nov 28, 2023
1 parent 97f533c commit dc1c83e
Showing 7 changed files with 14 additions and 12 deletions.
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
import React from 'react';
import { useTranslation } from 'react-i18next';
import { Layer, Tile } from '@carbon/react';
import { EmptyDataIllustration } from '@openmrs/esm-patient-common-lib';
import BillingHeader from '../billing-header/billing-header.component';
import styles from './billing-dashboard.scss';
import BillingHeader from './billing-header/billing-header.component';
import { useTranslation } from 'react-i18next';

export function BillingDashboard() {
const { t } = useTranslation();

return (
<>
<BillingHeader title={t('billing', 'Billing')} />
<BillingHeader title={t('home', 'Home')} />
<Layer className={styles.emptyStateContainer}>
<Tile className={styles.tile}>
<div className={styles.illo}>
Original file line number Diff line number Diff line change
@@ -18,7 +18,6 @@
@include type.type-style('heading-compact-01');
color: colors.$gray-70;
margin-top: layout.$spacing-05;
margin-bottom: layout.$spacing-03;
}

.tile {
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import React from 'react';
import { useTranslation } from 'react-i18next';
import { Calendar, Location, UserFollow } from '@carbon/react/icons';
import { formatDate, useSession } from '@openmrs/esm-framework';
import styles from './billing-header.scss';
import BillingIllustration from './billing-illustration.component';
import { Calendar, Location, UserFollow } from '@carbon/react/icons';
import styles from './billing-header.scss';

interface BillingHeaderProps {
title: string;
11 changes: 7 additions & 4 deletions packages/esm-billing-app/src/billing-header/billing-header.scss
Original file line number Diff line number Diff line change
@@ -11,27 +11,31 @@
border-bottom: 1px solid $ui-03;
display: flex;
justify-content: space-between;
padding: spacing.$spacing-05;
}

.left-justified-items {
display: flex;
flex-direction: row;
align-items: center;
cursor: pointer;
align-items: center;
}

.right-justified-items {
@include type.type-style('body-compact-02');
color: $text-02;
margin: spacing.$spacing-03;
display: flex;
flex-direction: column;
justify-content: space-between;
}

.page-name {
@include type.type-style('heading-04');
}

.page-labels {
margin: spacing.$spacing-05 0;
margin: spacing.$spacing-05;

p:first-of-type {
margin-bottom: spacing.$spacing-02;
@@ -47,8 +51,7 @@
.userContainer {
display: flex;
justify-content: flex-end;
margin-bottom: spacing.$spacing-03;
gap: spacing.$spacing-05;
gap: spacing.$spacing-05;
}

.value {
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@ import React from 'react';

const BillingIllustration: React.FC = () => {
return (
<svg width="92" height="94" viewBox="0 0 92 94" xmlns="http://www.w3.org/2000/svg">
<svg width="64" height="64" viewBox="10 10 60 60.02">
<title>Billing module illustration</title>
<g fill="none" fillRule="evenodd">
<path
2 changes: 1 addition & 1 deletion packages/esm-billing-app/src/root.component.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import { BrowserRouter, Route, Routes } from 'react-router-dom';
import { BillingDashboard } from './billing-dashboard.component';
import { BillingDashboard } from './billing-dashboard/billing-dashboard.component';

const RootComponent: React.FC = () => {
const baseName = window.getOpenmrsSpaBase() + 'home/billing';

0 comments on commit dc1c83e

Please sign in to comment.