Skip to content

Commit

Permalink
remove teammapper drag drop (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
JannikStreek authored Feb 14, 2024
1 parent 36e0738 commit 38aa4b0
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/components/PictogramGallery/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ type Props = {
}

const PictogramGallery: React.FC<Props> = ({ items, language, collection }) => {
const [previewOnly, setPreviewOnly] = useState(false);
const navigate = useNavigate();
const queryParams = useQuery();
const itemsPerPage = parseInt(queryParams.get('itemsPerPage') || '', 10) || itemsPerPageSelection[0];
Expand Down Expand Up @@ -57,14 +56,9 @@ const PictogramGallery: React.FC<Props> = ({ items, language, collection }) => {

return (
<Box paddingTop={3} paddingBottom={3}>
<Box>
<FormGroup>
<FormControlLabel control={<Switch checked={previewOnly} onChange={(ev) => setPreviewOnly(ev.target.checked)} />} label="TeamMapper Drag'n'Drop" />
</FormGroup>
</Box>
<Grid spacing={3} container mt={1} mb={3}>
{pageItems.map(item => <Grid key={item.id} xs={6} sm={6} md={4} lg={3} item>
<PictogramPreview id={item.id} title={item.title} language={language} collection={collection} onlyPreview={previewOnly} mobileHovered={selectedItemId === item.id} setSelectedItemId={setSelectedItemId} />
<PictogramPreview id={item.id} title={item.title} language={language} collection={collection} onlyPreview={false} mobileHovered={selectedItemId === item.id} setSelectedItemId={setSelectedItemId} />
</Grid>)}
</Grid>
<Button
Expand Down

0 comments on commit 38aa4b0

Please sign in to comment.