Skip to content

Commit 20a16b8

Browse files
committed
updated UI
1 parent 46f72b6 commit 20a16b8

File tree

4 files changed

+14
-19
lines changed

4 files changed

+14
-19
lines changed

sample/src/App.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import ImplementationFrame from './parts/ImplementationFrame';
66
function App() {
77
const [darkMode, setDarkMode] = useState(false);
88
const [debugMode, setDebugMode] = useState(false);
9-
const [upperBar, setUpperBar] = useState(true);
9+
const [upperBar, setUpperBar] = useState(false);
1010
const [help, setHelp] = useState(false);
1111
const [collapseMode, setCollapseMode] = useState(true);
1212
const [inverseMarkers, setInverseMarkers] = useState(false);

sample/src/parts/ImplementationFrame.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,11 +122,15 @@ function ImplementationFrame({
122122
<IframePanel/>
123123
<AnotherIframePanel /> */}
124124

125+
<ComplexPanel />
126+
<IframePanel />
127+
<AnotherIframePanel />
128+
125129
{/* <MupPanel placement="bottom" id="randomText44" title="Lorem Ipsum Panel" icon={<FormatIndentIncrease />}>
126130
<Typography color="textPrimary">Lorem ipsum dolor sit amet, consectetur adipiscing elit...</Typography>
127131
</MupPanel> */}
128132

129-
{/* <MupPanel id="chromecastPanel" title="Cast Icon" icon={<CastConnectedIcon />}>
133+
<MupPanel id="chromecastPanel" title="Cast Icon" icon={<CastConnectedIcon />}>
130134
<Box display="flex" flexDirection="column" style={{ gap: '8px'}}>
131135
<Skeleton variant="rect" animation="wave" height={10} />
132136
<Skeleton variant="rect" animation="wave" height={20} />
@@ -149,7 +153,7 @@ function ImplementationFrame({
149153

150154
<MupPanel id="tralalaPanel" title="Sub Demo Panel TextMock" iconInHeader={false} hint="No icon big guy..." icon={<AmpStories />}>
151155
<Skeleton variant="rect" width={'100%'} height={300} />
152-
</MupPanel> */}
156+
</MupPanel>
153157

154158
<MuiStatusBar/>
155159

sample/src/parts/ToggleTheme.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -101,11 +101,12 @@ const ToggleTheme = ({
101101
tooltip={`Toggle the ${toggle.title} flag: ${toggle.status ? 'off' : 'on'}`}
102102
onClick={() => toggle.statusToggle()}
103103
elements={[
104-
{
105-
icon: toggle.status ? <CheckBoxOutlinedIcon /> : <CheckBoxOutlineBlankOutlinedIcon />,
106-
text: toggle.title
107-
}
108-
]} />)}</>;
104+
{
105+
icon: toggle.status ? <CheckBoxOutlinedIcon /> : <CheckBoxOutlineBlankOutlinedIcon />,
106+
text: toggle.title
107+
}
108+
]}
109+
/>)}</>;
109110
};
110111

111112
export default ToggleTheme;

src/MupStatus/index.js

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const MupStatus = ({
2929
tooltip,
3030
elements
3131
}) => {
32-
const { status, settings, handleSetVisible, handleStatusAnnouncement, handleStatusDestroy } = useContext(DataProvider)
32+
const { status, settings, handleSetVisible, handleStatusAnnouncement } = useContext(DataProvider)
3333
const [statusObject, setStatusObject] = useState(null)
3434
const [anchorEl, setAnchorEl] = useState(null)
3535
const theme = useTheme()
@@ -46,16 +46,6 @@ const MupStatus = ({
4646
handleStatusAnnouncement({ id, elements, side, tooltip })
4747
}, [side, tooltip, elements, handleStatusAnnouncement])
4848

49-
// const callbackHandleStatusDestroy = useCallback((id) => {
50-
// handleStatusDestroy({ id })
51-
// },[])
52-
53-
// useEffect(() => {
54-
// return () => {
55-
// callbackHandleStatusDestroy(id)
56-
// }
57-
// }, [id, callbackHandleStatusDestroy])
58-
5949
useEffect(() => {
6050
if (id && statusObject === null && !status.some(item => item.uniqueId === id)) {
6151
callbackHandleStatusAnnouncement(id)

0 commit comments

Comments
 (0)