Skip to content

Commit b6cd048

Browse files
committed
add token example playground
1 parent 863a9e6 commit b6cd048

4 files changed

Lines changed: 38 additions & 185 deletions

File tree

sdk-examples/categories/transaction/src/App.css

Lines changed: 0 additions & 38 deletions
This file was deleted.

sdk-examples/categories/transaction/src/index.css

Lines changed: 0 additions & 138 deletions
This file was deleted.
Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
1-
import { StrictMode } from 'react'
2-
import { createRoot } from 'react-dom/client'
3-
import App from './App.tsx'
4-
import './index.css'
1+
import { createRoot } from "react-dom/client";
2+
import GlobalStyles from "./styles";
3+
import React from "react";
4+
import { TransactionExample } from "./app/Transaction/index.tsx";
55

6-
createRoot(document.getElementById('root')!).render(
7-
<StrictMode>
8-
<App />
9-
</StrictMode>,
10-
)
6+
const container = document.getElementById("root");
7+
const root = createRoot(container!);
8+
root.render(
9+
<React.StrictMode>
10+
<GlobalStyles />
11+
<TransactionExample />
12+
</React.StrictMode>,
13+
);
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
import { createGlobalStyle } from 'styled-components';
2+
3+
const GlobalStyles = createGlobalStyle`
4+
* {
5+
margin: 0;
6+
padding: 0;
7+
box-sizing: border-box;
8+
}
9+
10+
body {
11+
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
12+
background: #000000;
13+
}
14+
15+
body a {
16+
color: #1199FA;
17+
}
18+
19+
a {
20+
color: #007bff;
21+
text-decoration: none;
22+
background-color: transparent;
23+
}
24+
`;
25+
26+
export default GlobalStyles;

0 commit comments

Comments
 (0)