feat: create robot button

This commit is contained in:
karishmas6
2024-10-21 00:55:23 +05:30
parent 938a8eca3e
commit be14882792

View File

@@ -9,7 +9,7 @@ import TablePagination from '@mui/material/TablePagination';
import TableRow from '@mui/material/TableRow'; import TableRow from '@mui/material/TableRow';
import { useEffect } from "react"; import { useEffect } from "react";
import { WorkflowFile } from "maxun-core"; import { WorkflowFile } from "maxun-core";
import { IconButton } from "@mui/material"; import { IconButton, Button, Box } from "@mui/material";
import { Schedule, DeleteForever, Edit, PlayCircle } from "@mui/icons-material"; import { Schedule, DeleteForever, Edit, PlayCircle } from "@mui/icons-material";
import LinkIcon from '@mui/icons-material/Link'; import LinkIcon from '@mui/icons-material/Link';
import { useGlobalInfoStore } from "../../context/globalInfo"; import { useGlobalInfoStore } from "../../context/globalInfo";
@@ -126,9 +126,14 @@ export const RecordingsTable = ({ handleEditRecording, handleRunRecording, handl
return ( return (
<React.Fragment> <React.Fragment>
<Typography variant="h6" gutterBottom component="div"> <Box display="flex" justifyContent="space-between" alignItems="center">
My Robots <Typography variant="h6" gutterBottom>
</Typography> My Robots
</Typography>
<Button variant="contained" color="primary" onClick={() => console.log("Create Robot Clicked")}>
Create Robot
</Button>
</Box>
<TableContainer component={Paper} sx={{ width: '100%', overflow: 'hidden', marginTop: '15px' }}> <TableContainer component={Paper} sx={{ width: '100%', overflow: 'hidden', marginTop: '15px' }}>
<Table stickyHeader aria-label="sticky table"> <Table stickyHeader aria-label="sticky table">
<TableHead> <TableHead>