mirror of
https://github.com/XRPLF/xrpl-dev-portal.git
synced 2025-11-22 12:45:50 +00:00
WS Tool fixes: cURL modal, Clio Only
This commit is contained in:
26
resources/dev-tools/components/websocket-api/ClioOnly.tsx
Normal file
26
resources/dev-tools/components/websocket-api/ClioOnly.tsx
Normal file
@@ -0,0 +1,26 @@
|
||||
import { useThemeHooks } from '@redocly/theme/core/hooks';
|
||||
|
||||
export function ClioOnlyIcon () {
|
||||
const { useTranslate } = useThemeHooks()
|
||||
const { translate } = useTranslate()
|
||||
return (
|
||||
<span
|
||||
className="status clio_only"
|
||||
title={translate("This method is only available from the Clio server.")}
|
||||
>
|
||||
<i className="fa fa-exclamation-circle"></i>
|
||||
</span>
|
||||
)
|
||||
}
|
||||
|
||||
export function ClioOnlyNotice() {
|
||||
const { useTranslate } = useThemeHooks()
|
||||
const { translate } = useTranslate()
|
||||
return (
|
||||
<span className="clio-only-notice"
|
||||
>
|
||||
<ClioOnlyIcon />
|
||||
{translate(" Clio only")}
|
||||
</span>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user