-
Notifications
You must be signed in to change notification settings - Fork 359
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ENG-1207] Render modal for response examples in API Portal (#239)
* make styling for navlink consistent * move OperationReferenceMain under components/ * DRY badge styling * default color scheme is dark * remove bg from prism code * make active header tab brighter * render response example/schemas * add comment for confusing part of transformSpec
- Loading branch information
Showing
17 changed files
with
305 additions
and
111 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { useMantineTheme } from '@mantine/core' | ||
import dynamic from 'next/dynamic' | ||
const ReactJson = dynamic(() => import('react-json-view'), { | ||
ssr: false, | ||
}) | ||
export const JsonViewer: typeof ReactJson = (props) => { | ||
const theme = useMantineTheme() | ||
return ( | ||
<ReactJson | ||
theme={theme.colorScheme === 'dark' ? 'tomorrow' : undefined} | ||
style={{ | ||
fontSize: '0.85rem', | ||
padding: '0.75rem', | ||
maxHeight: '500px', | ||
overflowY: 'scroll', | ||
}} | ||
{...props} | ||
/> | ||
) | ||
} |
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
Oops, something went wrong.