Skip to content

Commit

Permalink
fix some capitlization
Browse files Browse the repository at this point in the history
  • Loading branch information
rustyjux committed Aug 30, 2024
1 parent 43994fa commit 413257c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/nextapp/pages/manager/gateways/list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ const MyGatewaysPage: React.FC = () => {
const handleNamespaceChange = React.useCallback(
(namespace: Namespace) => async () => {
toast({
title: `Switching to gateway: ${namespace.displayName}`,
title: `Switching to Gateway: ${namespace.displayName}`,
status: 'info',
isClosable: true,
});
Expand All @@ -116,15 +116,15 @@ const MyGatewaysPage: React.FC = () => {
toast.closeAll();
client.invalidateQueries();
toast({
title: `Switched to gateway: ${namespace.displayName}`,
title: `Switched to Gateway: ${namespace.displayName}`,
status: 'success',
isClosable: true,
});
await router.push('/manager/gateways/detail');
} catch (err) {
toast.closeAll();
toast({
title: 'Unable to switch gateways',
title: 'Unable to switch Gateways',
status: 'error',
isClosable: true,
});
Expand Down Expand Up @@ -264,11 +264,11 @@ const MyGatewaysPage: React.FC = () => {
</Flex>
{isSuccess &&
(namespaceSearchResults.length === 1 ? (
<Text mb={4}>{namespaceSearchResults.length} gateway</Text>
<Text mb={4}>{namespaceSearchResults.length} Gateway</Text>
) : (
<Text mb={4}>{namespaceSearchResults.length} gateways</Text>
<Text mb={4}>{namespaceSearchResults.length} Gateways</Text>
))}
{isLoading && <Text mb={4}>Loading gateways...</Text>}
{isLoading && <Text mb={4}>Loading Gateways...</Text>}
{isError && <Text mb={4}>Gateways failed to load</Text>}
{isSuccess && (
<>
Expand Down

0 comments on commit 413257c

Please sign in to comment.