mirror of
https://github.com/PeWu/topola-viewer.git
synced 2026-05-26 23:26:15 +00:00
Run prettier on all code
This commit is contained in:
@@ -371,14 +371,15 @@ class ChartWrapper {
|
|||||||
chartType: getChartType(props.chartType),
|
chartType: getChartType(props.chartType),
|
||||||
renderer: getRendererType(props.chartType),
|
renderer: getRendererType(props.chartType),
|
||||||
svgSelector: '#chart',
|
svgSelector: '#chart',
|
||||||
indiCallback: (info) => { // ths is called when an individual is selected in the chart
|
indiCallback: (info) => {
|
||||||
|
// ths is called when an individual is selected in the chart
|
||||||
if (info.modifiers?.shiftKey) {
|
if (info.modifiers?.shiftKey) {
|
||||||
// If the shift key is pressed, we just update the details tab without changing the selection in the chart.
|
// If the shift key is pressed, we just update the details tab without changing the selection in the chart.
|
||||||
// This allows users to quickly view details of multiple individuals without losing their place in the chart.
|
// This allows users to quickly view details of multiple individuals without losing their place in the chart.
|
||||||
props.onDetailSelection(info)
|
props.onDetailSelection(info);
|
||||||
} else {
|
} else {
|
||||||
// If the shift key is not pressed, we update the selection in the chart as usual.
|
// If the shift key is not pressed, we update the selection in the chart as usual.
|
||||||
props.onSelection(info)
|
props.onSelection(info);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
colors: chartColors.get(props.colors!),
|
colors: chartColors.get(props.colors!),
|
||||||
|
|||||||
@@ -30,7 +30,9 @@ export function SidePanel({
|
|||||||
id: 'tab.info',
|
id: 'tab.info',
|
||||||
defaultMessage: 'Info',
|
defaultMessage: 'Info',
|
||||||
}),
|
}),
|
||||||
render: () => <Details gedcom={data.gedcom} indi={selectedIndiId} config={config} />,
|
render: () => (
|
||||||
|
<Details gedcom={data.gedcom} indi={selectedIndiId} config={config} />
|
||||||
|
),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
menuItem: intl.formatMessage({
|
menuItem: intl.formatMessage({
|
||||||
|
|||||||
Reference in New Issue
Block a user