mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-18 22:00:31 +00:00
re-structure to monorepo.
This commit is contained in:
21
packages/webapp/src/components/Hint/FieldHint.tsx
Normal file
21
packages/webapp/src/components/Hint/FieldHint.tsx
Normal file
@@ -0,0 +1,21 @@
|
||||
// @ts-nocheck
|
||||
import React from 'react';
|
||||
import { Tooltip } from '@blueprintjs/core';
|
||||
import { Icon } from '../Icon';
|
||||
|
||||
import '@/style/components/Hint.scss';
|
||||
|
||||
/**
|
||||
* Field hint.
|
||||
*/
|
||||
export function FieldHint({ content, position, iconSize = 12, tooltipProps }) {
|
||||
return (
|
||||
<span class="hint">
|
||||
<Tooltip content={content} position={position} {...tooltipProps}>
|
||||
<Icon icon="info-circle" iconSize={iconSize} />
|
||||
</Tooltip>
|
||||
</span>
|
||||
);
|
||||
}
|
||||
|
||||
export const Hint = FieldHint;
|
||||
@@ -0,0 +1,6 @@
|
||||
// @ts-nocheck
|
||||
import React from 'react';
|
||||
|
||||
export function FieldRequiredHint() {
|
||||
return <span class="required">*</span>;
|
||||
}
|
||||
6
packages/webapp/src/components/Hint/RequiredHint.tsx
Normal file
6
packages/webapp/src/components/Hint/RequiredHint.tsx
Normal file
@@ -0,0 +1,6 @@
|
||||
// @ts-nocheck
|
||||
import React from 'react';
|
||||
|
||||
export function RequiredHint() {
|
||||
return <span class="required">*</span>;
|
||||
}
|
||||
4
packages/webapp/src/components/Hint/index.ts
Normal file
4
packages/webapp/src/components/Hint/index.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
// @ts-nocheck
|
||||
export * from './FieldHint';
|
||||
export * from './FieldRequiredHint';
|
||||
export * from './RequiredHint';
|
||||
Reference in New Issue
Block a user