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#LoadingIcon TypeScript Examples
The following examples show how to use
components#LoadingIcon.
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: tableColumns.tsx From solo with MIT License | 4 votes |
createColumns: CreateColumns = (
modifyWarehouseUser,
updateUserPermissons
) => [
{
Header: "Loading",
id: "loading",
disableSortBy: true,
Cell: ({
row: {
original: { loading, error }
}
}) => <LoadingIcon loading={loading} error={error} />
},
{
Header: "AAC",
accessor: "aac"
},
{
Header: "First Name",
accessor: "first_name"
},
{
Header: "Last Name",
accessor: "last_name"
},
{
Header: "DODID",
accessor: "username"
},
{
Header: "D6T",
id: "canD6T",
disableSortBy: true,
Cell: ({
row: {
original: { canD6T, userId }
}
}) => {
return (
<div className="padding-left-2">
<Checkbox
data-testid="has-d6t-checkbox"
checked={canD6T}
onChange={e => {
modifyWarehouseUser(userId, {
canD6T: e.target.checked
});
}}
/>
</div>
);
}
},
{
Header: "COR",
id: "canCOR",
disableSortBy: true,
Cell: ({
row: {
original: { userId, canCOR }
}
}) => {
return (
<div className="padding-left-2">
<Checkbox
data-testid="has-cor-checkbox"
checked={canCOR}
onChange={e => {
modifyWarehouseUser(userId, {
canCOR: e.target.checked
});
}}
/>
</div>
);
}
},
{
Header: "Submit Permissions",
id: "submit",
disableSortBy: true,
Cell: ({
row: {
original: { userId, hasModified }
}
}) => {
return (
<div className="padding-left-2">
<Button
disabled={!hasModified}
onClick={() => {
updateUserPermissons(userId);
}}
>
Submit
</Button>
</div>
);
}
}
]
Example #2
Source File: tableColumns.tsx From solo with MIT License | 4 votes |
createColumns: CreateColumns = (modifyDocument, removeDocument) => [
{
Header: "",
id: "removeRow",
Cell: ({
row: {
original: { sdn }
}
}) => (
<Button onClick={() => removeDocument(sdn)} unstyled>
<FontAwesomeIcon icon={faTimes} />
</Button>
)
},
{
Header: <div className="width-full text-center">Loading</div>,
id: "loadingStatus",
disableSortBy: true,
Cell: ({
row: {
original: { loadingStatus }
}
}) => (
<div className="text-center">
<LoadingIcon {...loadingStatus} />
</div>
)
},
{
Header: "SDN",
accessor: "sdn"
},
{
Header: "NIIN",
accessor: "part.nsn",
id: "niin"
},
{
Header: "Nomenclature",
id: "nomen",
accessor: "part.nomen"
},
{
Header: "Quantity",
id: "quantity",
accessor: ({ sdn, enteredReceivedQty }) => (
<div className="maxw-8">
<QuantityInput
enteredQuantity={enteredReceivedQty}
onQuantitiyChange={value =>
modifyDocument(sdn, {
enteredReceivedQty: value
})
}
/>
</div>
)
},
{
Header: "Commodity",
id: "commodity",
accessor: "commodityName"
},
{
Header: "Subinventory",
id: "subinventory",
accessor: ({
sdn,
subinventorys,
enteredSubinventoryCode,
locatorsBySubinventory
}) => (
<>
{subinventorys && (
<SubinventorySelector
subinventorys={subinventorys}
enteredSubinventoryCode={enteredSubinventoryCode}
onSelectSubinventory={code => {
modifyDocument(sdn, {
enteredSubinventoryCode: code,
enteredLocatorCode: locatorsBySubinventory[code][0].code
});
}}
/>
)}
</>
)
},
{
Header: "Locator",
id: "locator",
accessor: ({
sdn,
locatorsBySubinventory,
enteredSubinventoryCode,
enteredLocatorCode
}) => (
<>
{locatorsBySubinventory && enteredSubinventoryCode && (
<LocatorSelector
locators={locatorsBySubinventory[enteredSubinventoryCode]}
enteredLocatorCode={enteredLocatorCode}
onSelectLocator={code => {
modifyDocument(sdn, {
enteredLocatorCode: code
});
}}
/>
)}
</>
)
}
]