components APIs
- Header
- Button
- Layout
- Footer
- Text
- Box
- Card
- Table
- Loading
- Select
- Loader
- Toolbar
- Icon
- CodeInput
- BottomSheet
- InfoBlock
- LanguageToggle
- ProgressCircles
- Ripple
- Toggle
- Tag
- Input
- Paginator
- Filter
- AsyncSelect
- CatalogBigButton
- ReadMore
- ConditionalWrapper
- LastCheckedDisplay
- PriceLabel
- PageTitle
- CartTable
- CartFinalPriceTable
- LoadingSpin
- InfoModal
- ProductCard
- RecommendCoupon
- PriceVales
- NomalLayout
- Web3ReactManager
- Popups
- CurrencyInput
- TransactionErrorContent
- TransactionConfirmationModal
- ConfirmationModalContent
- DoubleCurrencyLogo
- CustomModal
- CurrencySearchModal
- CurrencyLogo
- NumericalInput
- Logo
- QuestionHelper
- ListLogo
- DataTable
- WalletModal
- CustomTable
- MinimalPositionCard
- RemoveLiquidityModal
- CustomTooltip
- ColoredSlider
- ToggleSwitch
- FormattedPriceImpact
- SettingsModal
- ConfirmSwapModal
- AdvancedSwapDetails
- AddressInput
- LineChart
- StakeSyrupModal
- AccountDetails
- BetaWarningBanner
- AreaChart
- ChartType
- TokensTable
- PairTable
- TopMovers
- BarChart
- TransactionsTable
- StakeQuickModal
- UnstakeQuickModal
- SyrupCard
- CustomMenu
- SearchInput
- CustomSwitch
- FarmCard
- BuyFiatModal
- MoonpayModal
- RewardSlider
- Swap
- AddLiquidity
- PoolFinderModal
- PoolPositionCard
- SwapTokenDetails
- SuperHeader
- GlobalStyles
- PrimaryButton
- SectionTitle
- Section
- AccentSection
- ChainSelection
- CoinSelection
- AddressSelection
- SendAction
- Buttons
- Content
- Particles
- IconButton
- NotSupported
- InputSearch
- RouteGuard
- SearchBar
- FileInput
- GovBanner
- AuthForm
- DomainDetails
- Subnav
- ColumnFilter
- ImportExport
- selectFilter
- TaggedArrayInput
- FacetFilter
- ButtonSingleLine
- TextMultiline
- ButtonSelect
- BottomSheetBehavior
- InfoButton
- BulletPointX
- BulletPointCheck
- Title
- LoadingIcon
- SelectFilterControls
- CORInputForm
- SdnInputForm
- Navbar
- HomeRoute
- AuthRoute
- DocumentDetails
- DocumentStepper
- AddGame
- Auth
- Effectiveness
- Export
- PokemonType
- Moves
- Member
- MoveSelector
- Type
- Natures
- Move
- PokeInfo
- Share
- Badges
- Status
- UpdateSW
- About
- Builder
- Calculator
- Changelog
- Import
- Pokestats
- Report
- Rules
- Settings
- Tracker
- DarkThemeProvider
- NotificationHandler
- Background
- Indicator
- StyledButton
- StyledText
- Illustration
- OnboardingSlider
- FlexList
- AppLayout
- ScrollableList
- Visualization
- DataSearch
- Region
- App
- CompareApiLegend
- CompareApiBreadcrumbs
- CompareApiLink
- CompareApiCard
- ExploreApiBreadcrumbs
- ExploreApiLink
- ExploreApiSearch
- ExploreApiConst
- ApiLoader
- RefreshButton
- Listing
- PriceModal
- ConfirmationModal
- Transition
- AutoComplete
- useInput
- Avatar
- Badge
- Breadcrumbs
- ButtonDropdown
- ButtonGroup
- Capacity
- Checkbox
- Code
- Collapse
- CssBaseline
- GeistProvider
- Description
- Display
- Divider
- Dot
- Drawer
- useModal
- Fieldset
- Grid
- Image
- Keyboard
- Link
- Modal
- Note
- Page
- Pagination
- Popover
- Progress
- Radio
- Rating
- Slider
- Snippet
- Spacer
- Spinner
- Tabs
- Textarea
- Tooltip
- Tree
- useBodyScroll
- useClasses
- useClickAway
- useClipboard
- useCurrentState
- useKeyboard
- KeyMod
- KeyCode
- useMediaQuery
- useTabs
- useToasts
- User
- useTheme
- Themes
- GeistUIThemes
- useAllThemes
- CollapsableDialog
- Map
- IPForm
- IPMenu
- Container
- Parallax
- Nav
- SEO
- BlogNav
- ExtensionCard
- MenuComp
Other Related APIs
components#CORInputForm TypeScript Examples
The following examples show how to use
components#CORInputForm.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: SubmitCORCell.tsx From solo with MIT License | 6 votes |
ReceivedByInputCell: React.FC<SubmitCORCellProps> = ({
onSubmitCOR,
document: { sdn, loadingStatus }
}) => {
const [receivedBy, setReceivedBy] = useState("");
const onSubmit = () => {
onSubmitCOR(sdn, receivedBy);
};
useEffect(() => {
setReceivedBy("");
}, [sdn]);
return (
<CORInputForm
value={receivedBy}
onReceivedByChange={setReceivedBy}
onSubmitCOR={onSubmit}
{...loadingStatus}
/>
);
}
Example #2
Source File: ConfirmationOfReceiptPage.tsx From solo with MIT License | 5 votes |
ConfirmationOfReceiptPage: React.FC = () => {
const [bulkReceivedBy, setBulkReceivedBy] = useState("");
const {
docs,
updateDocuments,
pageCount,
submitCOR,
submitBulkCOR,
bulkSubmitStatus,
resetBulkSubmitStatus
} = useCORDocuments();
const columns = useMemo(
() =>
createColumns({
onSubmitCOR: submitCOR
}),
[submitCOR]
);
const onSelectedRowsChange = useCallback(
({ toggleHideColumn, selectedFlatRows }: TableInstance<Document>) => {
// show individual row submit forms only when no rows are selected
resetBulkSubmitStatus();
toggleHideColumn("submitCOR", selectedFlatRows.length > 0);
},
[resetBulkSubmitStatus]
);
const renderPagination = (table: TableInstance<Document>) => (
<>{table.selectedFlatRows.length === 0 && <Paginator table={table} />}</>
);
const renderFilterControls = (table: TableInstance<Document>) => {
const { setGlobalFilter, selectedFlatRows } = table;
return selectedFlatRows.length > 0 ? (
<CORInputForm
value={bulkReceivedBy}
onReceivedByChange={setBulkReceivedBy}
onSubmitCOR={() =>
submitBulkCOR(
selectedFlatRows.map(({ original }) => original.sdn),
bulkReceivedBy
)
}
actionText={`Submit ${selectedFlatRows.length} Cors`}
className="margin-left-2 padding-y-2 flex-justify-center"
{...bulkSubmitStatus}
/>
) : (
<SelectFilterControls options={filterable} onSubmit={setGlobalFilter} />
);
};
return (
<div className="tablet:margin-x-8 overflow-x-auto">
<Title>Confirmation of Receipt</Title>
<Table<Document>
columns={columns}
data={docs}
onSelectedRowsChange={onSelectedRowsChange}
renderFilterControls={renderFilterControls}
renderPagination={renderPagination}
pageCount={pageCount}
fetchData={updateDocuments}
/>
</div>
);
}