Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "fix: Remove empty makeStyles call.",
"packageName": "@fluentui/react-toolbar",
"email": "[email protected]",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -1,24 +1,16 @@
import { SlotClassNames } from '@fluentui/react-utilities';
import { makeStyles, mergeClasses } from '@griffel/react';
import { mergeClasses } from '@griffel/react';
import type { ToolbarGroupSlots, ToolbarGroupState } from './ToolbarGroup.types';

export const toolbarGroupClassNames: SlotClassNames<ToolbarGroupSlots> = {
root: 'fui-ToolbarGroup',
};

/**
* Styles for the root slot
*/
const useStyles = makeStyles({
root: {},
});

/**
* Apply styling to the Toolbar slots based on the state
*/
export const useToolbarGroupStyles_unstable = (state: ToolbarGroupState): ToolbarGroupState => {
const styles = useStyles();
state.root.className = mergeClasses(toolbarGroupClassNames.root, styles.root, state.root.className);
state.root.className = mergeClasses(toolbarGroupClassNames.root, state.root.className);

return state;
};