Skip to content

Commit

Permalink
Update UI
Browse files Browse the repository at this point in the history
  • Loading branch information
tylerlong committed Oct 17, 2024
1 parent e579f24 commit 20dbaa6
Show file tree
Hide file tree
Showing 7 changed files with 43 additions and 24 deletions.
30 changes: 15 additions & 15 deletions docs/index.72569953.js → docs/index.9b894a01.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/index.72569953.js.map → docs/index.9b894a01.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!doctype html><html><head><script type="module" src="index.runtime.27a86868.js"></script><meta charset="utf-8"><link rel="icon" type="image/svg+xml" href="icon128.c622d2d9.png"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>RingCentral Team Messaging Salesforce Chrome extension</title><link rel="stylesheet" href="index.fe5f592c.css"></head><body> <div id="root"></div> <script type="module" src="index.72569953.js"></script> </body></html>
<!doctype html><html><head><script type="module" src="index.runtime.6775e6a4.js"></script><meta charset="utf-8"><link rel="icon" type="image/svg+xml" href="icon128.c622d2d9.png"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>RingCentral Team Messaging Salesforce Chrome extension</title><link rel="stylesheet" href="index.fe5f592c.css"></head><body> <div id="root"></div> <script type="module" src="index.9b894a01.js"></script> </body></html>

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 12 additions & 1 deletion src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,22 @@
import { ConfigProvider } from 'antd';
import React from 'react';
import { createRoot } from 'react-dom/client';

import App from './main';
import store from './store';

const root = createRoot(document.getElementById('root')!);
root.render(<App store={store} />);
root.render(
<ConfigProvider
theme={{
token: {
colorPrimary: '#00b96b',
},
}}
>
<App store={store} />
</ConfigProvider>,
);

(async () => {
// await store.init();
Expand Down
14 changes: 11 additions & 3 deletions src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,11 +113,19 @@ const TeamComponent = auto((props: { store: Store; team: TMTeamInfo }) => {
};
return (
<>
{team.name}
<Button onClick={() => openTeam(team.id, 'app')} size="small">
{team.name}{' '}
<Button
onClick={() => openTeam(team.id, 'app')}
size="small"
type="primary"
>
App
</Button>{' '}
<Button onClick={() => openTeam(team.id, 'web')} size="small">
<Button
onClick={() => openTeam(team.id, 'web')}
size="small"
type="primary"
>
Web
</Button>
<br />
Expand Down

0 comments on commit 20dbaa6

Please sign in to comment.