Skip to content

Commit

Permalink
added import
Browse files Browse the repository at this point in the history
  • Loading branch information
dvmoritzschoefl committed Oct 10, 2023
1 parent da79da1 commit 389c2f5
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 6 deletions.
2 changes: 2 additions & 0 deletions src/app/VisynApp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import { useVisynAppContext } from './VisynAppContext';
import { VisynHeader } from './header/VisynHeader';
import { VisynLoginMenu } from './login/VisynLoginMenu';

import '@mantine/core/styles.css';

/**
*
* @param header Optional custom header to be passed to the AppShell. If not provided, will use an empty VisynHeader.
Expand Down
18 changes: 13 additions & 5 deletions src/demo/MainApp.tsx
Original file line number Diff line number Diff line change
@@ -1,19 +1,16 @@
import { Box, Button, Loader, Select, SimpleGrid, Stack, Text } from '@mantine/core';
import '@mantine/core/styles.css';
import { Box, Loader, Select, SimpleGrid, Stack, Text } from '@mantine/core';
import * as React from 'react';
import { VisynApp, VisynHeader, useVisynAppContext } from '../app';
import { VisynRanking } from '../ranking';
import { IBuiltVisynRanking } from '../ranking/EagerVisynRanking';
import { BaseVisConfig, ENumericalColorScaleType, EScatterSelectSettings, ESupportedPlotlyVis, Vis } from '../vis';
import classes from '../vis/Vis.module.css';
import { IScatterConfig } from '../vis/scatter/interfaces';
import { fetchIrisData } from '../vis/stories/Iris.stories';
import { iris } from '../vis/stories/irisData';
import { MyNumberScore, MyStringScore } from './scoresUtils';
import classes from '../vis/Vis.module.css';

export function MainApp() {


const { user } = useVisynAppContext();
const [visConfig, setVisConfig] = React.useState<BaseVisConfig>({
type: ESupportedPlotlyVis.SCATTER,
Expand Down Expand Up @@ -88,6 +85,17 @@ export function MainApp() {
/>
</Stack>

<Box
style={
{
'--my-hover': 'red',
} as React.CSSProperties
}
className={classes.test}
>
Test
</Box>

<Vis
columns={columns}
showSidebarDefault
Expand Down
2 changes: 1 addition & 1 deletion src/vis/Vis.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
}

&:hover {
background: black;
background: var(--my-hover);
}
}

Expand Down

0 comments on commit 389c2f5

Please sign in to comment.