Skip to content

Commit c2b7f09

Browse files
committed
🐛 fix: corrigir temas do CodePlayground e adicionar imagens faltantes
- Remover imports de temas inexistentes (nightOwl, aquaBlue) do pacote @codesandbox/sandpack-react - Usar temas built-in 'dark' e 'light' do Sandpack - Adicionar logo.svg faltante no navbar - Adicionar sicp-social-card.jpg para compartilhamento em redes sociais Isso resolve o problema do code playground não exibir output devido aos temas indefinidos.
1 parent 7082a67 commit c2b7f09

File tree

3 files changed

+43
-2
lines changed

3 files changed

+43
-2
lines changed

src/components/CodePlayground.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import React from 'react';
22
import { Sandpack } from "@codesandbox/sandpack-react";
3-
import { nightOwl, aquaBlue } from "@codesandbox/sandpack-react";
43
import { useColorMode } from '@docusaurus/theme-common';
54

65
/**
@@ -30,7 +29,7 @@ export default function CodePlayground({
3029
height = 300,
3130
}) {
3231
const { colorMode } = useColorMode();
33-
const theme = colorMode === 'dark' ? nightOwl : aquaBlue;
32+
const theme = colorMode === 'dark' ? 'dark' : 'light';
3433

3534
// Construir estrutura de arquivos baseado nas props
3635
let sandpackFiles;

static/img/logo.svg

Lines changed: 22 additions & 0 deletions
Loading

static/img/sicp-social-card.jpg

Lines changed: 20 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)