Skip to content
Open
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion assets/svg/discord-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion assets/svg/discourse-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 4 additions & 4 deletions assets/svg/feedback-bad.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions assets/svg/feedback-good.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 8 additions & 8 deletions assets/svg/github-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion assets/svg/x-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion assets/svg/youtube-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 4 additions & 4 deletions components/ApiReference/ApiReference.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,12 @@ const ApiReference: React.FC<{ networkName: string }> = ({ networkName }) => {
bottom: 60,
right: 17,
zIndex: 1000,
backgroundColor: 'background.dark',
backgroundColor: 'background.paper',
border: 'none',
color: 'text.primary',
display: ['block', 'none'],
'&:hover': {
backgroundColor: 'background.dark'
backgroundColor: 'background.paper'
}
}}
onClick={() => {
Expand All @@ -99,10 +99,10 @@ const ApiReference: React.FC<{ networkName: string }> = ({ networkName }) => {
opacity: currentIndex !== '' ? 1 : 0,
transition: 'opacity 0.3s',
border: 'none',
backgroundColor: 'background.dark',
backgroundColor: 'background.paper',
color: 'text.primary',
'&:hover': {
backgroundColor: 'background.dark'
backgroundColor: 'background.paper'
}
}}
onClick={() => {
Expand Down
3 changes: 2 additions & 1 deletion components/ApiReference/Path.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ const Path: React.FC<{ path: string; method: string }> = ({ path, method }) => {
<Grid
container
sx={{
border: ({ palette }) => `1px solid ${palette.grey[800]}`,
border: '1px solid',
borderColor: 'border.light',
borderRadius: '8px',
mb: 2,
fontSize: '14px',
Expand Down
4 changes: 2 additions & 2 deletions components/ApiReference/SampleRequestHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ const SampleRequestHeader: React.FC<{
sx={{
mt: 1,
height: '36px',
color: 'rgba(249,250,251,.7)',
backgroundColor: ({ palette }) => palette.grey[900]
color: 'text.primary',
backgroundColor: 'background.paper'
}}
>
Try it on Swagger
Expand Down
7 changes: 3 additions & 4 deletions components/ApiReference/TOC.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import Link from '@mui/material/Link'
import { useState } from 'react'

import { useCurrentTocIndex } from '../../lib/mdx'
import { theme } from '../../styles/theme'
import Method from './Method'

export interface Heading {
Expand Down Expand Up @@ -58,7 +57,7 @@ const TableOfContents: React.FC<{
backgroundColor: 'transparent',
'&:hover': {
color: 'text.primary',
backgroundColor: 'rgba(224, 255, 240, 0.05)'
backgroundColor: 'rgba(128, 128, 128, 0.08)'
},
transition: '0.2s',
display: ['none', 'block']
Expand Down Expand Up @@ -177,12 +176,12 @@ const TocMenuItem: React.FC<{
color: currentIndex === child.link ? 'primary.main' : 'grey.500',
backgroundColor:
currentIndex === child.link
? theme.palette.background.light
? 'background.light'
: 'transparent',
'&:hover': {
color:
currentIndex === child.link ? 'primary.main' : 'text.primary',
backgroundColor: 'rgba(224, 255, 240, 0.05)'
backgroundColor: 'rgba(128, 128, 128, 0.08)'
},
transition: '0.2s'
}}
Expand Down
Loading
Loading