-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(#28): add empty response view to all response types
- Loading branch information
Showing
5 changed files
with
67 additions
and
40 deletions.
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
src/app/pages/tabs-container/collection-types/grpc/response/empty-response-view.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import { Container, Text } from '@nextui-org/react'; | ||
import React from 'react'; | ||
|
||
import { Kbd } from '@components'; | ||
import { ShortcutsGroup, useShortcuts } from '@hooks'; | ||
|
||
export const EmptyResponseView: React.FC = () => { | ||
const { getShortcuts } = useShortcuts(); | ||
|
||
const shortcuts = getShortcuts(ShortcutsGroup.RESPONSE); | ||
|
||
return ( | ||
<Container display="flex" direction="column" justify="center" alignItems="center"> | ||
{shortcuts.map((shortcut) => ( | ||
<> | ||
<Text size="$sm" css={{ color: '$accents8' }}> | ||
{shortcut.description} | ||
</Text> | ||
<Kbd key={shortcut.key} size="sm"> | ||
{shortcut.key} | ||
</Kbd> | ||
</> | ||
))} | ||
</Container> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters