2023-02-10 10:13:59 +00:00
|
|
|
import { Card, CardContent, CardHeader } from "@material-ui/core";
|
2023-02-08 08:28:14 +00:00
|
|
|
import { ImportProductsToAlgolia } from "./ImportProductsToAlgolia";
|
2023-04-05 18:27:23 +00:00
|
|
|
import { AlgoliaConfigurationCard } from "./AlgoliaConfigurationCard";
|
|
|
|
import { makeStyles } from "@saleor/macaw-ui";
|
2023-02-08 08:28:14 +00:00
|
|
|
import { useRouter } from "next/router";
|
2023-04-05 18:27:23 +00:00
|
|
|
import { Instructions } from "./Instructions";
|
2023-02-08 08:28:14 +00:00
|
|
|
|
|
|
|
import { AppColumnsLayout } from "./AppColumnsLayout";
|
|
|
|
|
|
|
|
const useStyles = makeStyles((theme) => ({
|
|
|
|
buttonsGrid: { display: "flex", gap: 10 },
|
|
|
|
topBar: {
|
|
|
|
marginBottom: 32,
|
|
|
|
},
|
|
|
|
indexActions: {
|
|
|
|
marginTop: 10,
|
|
|
|
},
|
|
|
|
wrapper: {
|
2023-02-28 19:18:34 +00:00
|
|
|
minHeight: "100%",
|
2023-02-08 08:28:14 +00:00
|
|
|
paddingBottom: 50,
|
|
|
|
},
|
|
|
|
tabs: { marginLeft: 32, marginBottom: 32 },
|
|
|
|
}));
|
|
|
|
|
|
|
|
export const ConfigurationView = () => {
|
|
|
|
const styles = useStyles();
|
|
|
|
|
|
|
|
return (
|
|
|
|
<div className={styles.wrapper}>
|
|
|
|
<AppColumnsLayout>
|
|
|
|
<div />
|
|
|
|
<div>
|
|
|
|
<AlgoliaConfigurationCard />
|
|
|
|
<Card className={styles.indexActions}>
|
|
|
|
<CardHeader title="Indexing" />
|
|
|
|
<CardContent>
|
|
|
|
<ImportProductsToAlgolia />
|
|
|
|
</CardContent>
|
|
|
|
</Card>
|
|
|
|
</div>
|
|
|
|
<Instructions />
|
|
|
|
</AppColumnsLayout>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
};
|