Skip to content

Commit 4c8fd78

Browse files
committed
932646: Enhancing the UI for a More Attractive Stock Management Application with tailwind3.
1 parent ff18c5f commit 4c8fd78

File tree

4 files changed

+209
-99
lines changed

4 files changed

+209
-99
lines changed

Stock-Market-Application/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"dependencies": {
66
"@syncfusion/ej2-base": "^26.1.35",
77
"@syncfusion/ej2-react-base": "^26.1.35",
8+
"@syncfusion/ej2-react-notifications": "^26.1.35",
89
"@syncfusion/ej2-querybuilder": "^26.1.35",
910
"@syncfusion/ej2-react-querybuilder": "^26.1.35",
1011
"@syncfusion/ej2-data": "^26.1.35",

Stock-Market-Application/public/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
rel="stylesheet"
88
/>
99
<link
10-
href="https://cdn.syncfusion.com/ej2/26.1.35/material-dark.css"
10+
href="https://cdn.syncfusion.com/ej2/28.1.33/tailwind3.css"
1111
rel="stylesheet"
1212
/>
1313
<script src="https://cdn.syncfusion.com/ej2/syncfusion-helper.js"></script>

Stock-Market-Application/src/components/MyPortfolio.tsx

+6
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import {
1919
} from '@syncfusion/ej2-react-grids';
2020
import { StockDetails } from '../data';
2121
import { useNavigate } from 'react-router-dom';
22+
import { MessageComponent } from '@syncfusion/ej2-react-notifications';
2223

2324
export default function MyPortfolio(props: { changeMarquee: Function, myStockDm: DataManager }) {
2425
const navigate = useNavigate();
@@ -155,6 +156,11 @@ export default function MyPortfolio(props: { changeMarquee: Function, myStockDm:
155156
enableHover={false}
156157
commandClick={commandClick}
157158
destroyed={destroyed}
159+
allowSelection={false}
160+
allowKeyboard={false}
161+
emptyRecordTemplate={()=>{
162+
return (<MessageComponent id="msg_info" content="Your portfolio has no stocks." severity="Info" variant="Filled"></MessageComponent>);
163+
}}
158164
>
159165
<ColumnsDirective>
160166
<ColumnDirective

0 commit comments

Comments
 (0)