Skip to content

Commit

Permalink
add upload button
Browse files Browse the repository at this point in the history
  • Loading branch information
hguerrero committed Nov 13, 2023
1 parent 00a630b commit 988f568
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions client/src/components/Services.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const Services = (props: { config: ExtensionConfig }) => {

const ddClient = useDockerDesktopClient();

const getServices = async () => {
const retrieveServices = async () => {
const result = await ddClient.docker.cli.exec('exec', [
APP_CONTAINER,
'/bin/curl',
Expand All @@ -68,19 +68,28 @@ const Services = (props: { config: ExtensionConfig }) => {
};

useEffect(() => {
getServices();
retrieveServices();
}, []);

return (
<Box sx={{ width: '100%', alignItems: 'center' }} my={5}>
<Typography variant="h3">Services</Typography>
<Box display="flex" flex="row" justifyContent="space-between">
<Typography variant="h3">Services</Typography>
<Button variant="contained" size="large" onClick={() => {}}>
+ Add Service
</Button>
</Box>
<Box my={2}>
<Stack>
<TableContainer>
<Table aria-label="collapsible table">
<TableBody>
{services.map((service) => (
<ServiceRow key={service.id} service={service} config={config} />
<ServiceRow
key={service.id}
service={service}
config={config}
/>
))}
</TableBody>
</Table>
Expand Down

0 comments on commit 988f568

Please sign in to comment.