Skip to content

Commit 50c9e07

Browse files
committed
clean up old code, no more switcher
1 parent 159e76b commit 50c9e07

File tree

2 files changed

+3
-36
lines changed

2 files changed

+3
-36
lines changed
Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,14 @@
11
import {InterfaceType, setLinks, TInterface} from './types';
22
import React from 'react';
3-
import {style} from '@react-spectrum/s2/style' with {type: 'macro'};
43

5-
6-
const wrapper = style({
7-
paddingX: {
8-
default: 0,
9-
isInSwitcher: 32
10-
},
11-
paddingBottom: {
12-
default: 0,
13-
isInSwitcher: 32
14-
}
15-
});
164
interface ClassAPIProps {
175
class: TInterface,
18-
links: any,
19-
// TODO: replace by making this a client component if we can do that
20-
isInSwitcher?: boolean
6+
links: any
217
}
228

23-
export function ClassAPI({class: c, links, isInSwitcher}: ClassAPIProps) {
9+
export function ClassAPI({class: c, links}: ClassAPIProps) {
2410
setLinks(links);
2511
return (
26-
<div className={wrapper({isInSwitcher})}>
27-
<InterfaceType {...c} />
28-
</div>
12+
<InterfaceType {...c} />
2913
);
3014
}

packages/dev/s2-docs/src/Layout.tsx

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -46,23 +46,6 @@ const components = {
4646
p: ({children, ...props}) => <p {...props} className={style({font: {default: 'body', lg: 'body-lg'}, marginY: 24})}>{children}</p>,
4747
ul: (props) => <ul {...props} />,
4848
li: ({children, ...props}) => <li {...props} className={style({font: {default: 'body', lg: 'body-lg'}, marginY: 0})}>{children}</li>,
49-
blockquote: ({children, ...props}) => (
50-
<blockquote
51-
{...props}
52-
className={style({
53-
borderStartWidth: 4,
54-
borderEndWidth: 0,
55-
borderTopWidth: 0,
56-
borderBottomWidth: 0,
57-
borderStyle: 'solid',
58-
borderColor: 'gray-400',
59-
paddingStart: 12,
60-
font: {default: 'body', lg: 'body-lg'},
61-
margin: 'unset'
62-
})}>
63-
{children}
64-
</blockquote>
65-
),
6649
Figure: (props) => <figure {...props} className={style({display: 'flex', flexDirection: 'column', alignItems: 'center', marginY: 32, marginX: 0})} />,
6750
Caption: (props) => <figcaption {...props} className={style({font: 'body-sm'})} />,
6851
CodeBlock: CodeBlock,

0 commit comments

Comments
 (0)