mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 12:50:38 +00:00
fix: allocate landed cost on inventory items.
This commit is contained in:
15
src/components/Dialog/DialogFooter.js
Normal file
15
src/components/Dialog/DialogFooter.js
Normal file
@@ -0,0 +1,15 @@
|
||||
import React from 'react';
|
||||
import styled from 'styled-components';
|
||||
import { Classes } from '@blueprintjs/core';
|
||||
|
||||
export function DialogFooter({ children }) {
|
||||
return (
|
||||
<DialogFooterRoot className={Classes.DIALOG_FOOTER}>
|
||||
{children}
|
||||
</DialogFooterRoot>
|
||||
);
|
||||
}
|
||||
|
||||
const DialogFooterRoot = styled.div`
|
||||
display: flex;
|
||||
`;
|
||||
@@ -14,13 +14,11 @@ export function DialogFooterActions({ alignment = 'right', children }) {
|
||||
}
|
||||
|
||||
const DialogFooterActionsRoot = styled.div`
|
||||
margin-left: -10px;
|
||||
margin-right: -10px;
|
||||
justify-content: ${(props) =>
|
||||
props.alignment === 'right' ? 'flex-end' : 'flex-start'};
|
||||
${(props) =>
|
||||
props.alignment === 'right' ? 'margin-left: auto;' : 'margin-right: auto;'};
|
||||
|
||||
.bp3-button {
|
||||
margin-left: 10px;
|
||||
margin-left: 10px;
|
||||
margin-left: 5px;
|
||||
margin-left: 5px;
|
||||
}
|
||||
`;
|
||||
|
||||
@@ -3,4 +3,5 @@
|
||||
export * from './Dialog';
|
||||
export * from './DialogFooterActions';
|
||||
export * from './DialogSuspense';
|
||||
export * from './DialogContent';
|
||||
export * from './DialogContent';
|
||||
export * from './DialogFooter';
|
||||
Reference in New Issue
Block a user