Skip to content
Closed
Show file tree
Hide file tree
Changes from all 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
12 changes: 2 additions & 10 deletions website/src/components/EditorToolbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,7 @@ export type Props = Readonly<{
style?: React.CSSProperties;
}>;

export default function EditorToolbar({
code,
className,
style,
}: Props): JSX.Element {
export default function EditorToolbar({code, className, style}: Props) {
const handleShare = useCallback(() => {
navigator.clipboard.writeText(
window.location.origin +
Expand All @@ -47,11 +43,7 @@ type ToolbarButtonProps = Readonly<{
label?: string;
}>;

function ToolbarButton({
onClick,
Icon,
label,
}: ToolbarButtonProps): JSX.Element {
function ToolbarButton({onClick, Icon, label}: ToolbarButtonProps) {
const [isSuccess, setIsSuccess] = useState(false);
const copyTimeout = useRef<number | undefined>(undefined);

Expand Down
2 changes: 1 addition & 1 deletion website/src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ function PlaygroundSection() {
);
}

export default function Home(): JSX.Element {
export default function Home() {
return (
<Layout description="Documentation for the Yoga layout engine">
<HeroSection />
Expand Down
2 changes: 1 addition & 1 deletion website/src/pages/playground.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const defaultCode = `
</Layout>
`.trim();

export default function PlaygroundPage(): JSX.Element {
export default function PlaygroundPage() {
const code = useCodeFromQueryParam();

return (
Expand Down
Loading
Loading