mirror of
https://github.com/microsoft/frontend-bootcamp.git
synced 2026-01-26 14:56:42 +08:00
Add styles example to 2.3 demo
This commit is contained in:
@@ -15,7 +15,14 @@ export const TodoFooter = (props: TodoFooterProps) => {
|
|||||||
<Text>
|
<Text>
|
||||||
{itemCount} item{itemCount === 1 ? '' : 's'} left
|
{itemCount} item{itemCount === 1 ? '' : 's'} left
|
||||||
</Text>
|
</Text>
|
||||||
<DefaultButton onClick={() => props.clear()}>Clear Completed</DefaultButton>
|
<DefaultButton
|
||||||
|
onClick={() => props.clear()}
|
||||||
|
styles={{
|
||||||
|
root: { fontStyle: 'oblique' }
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
Clear Completed
|
||||||
|
</DefaultButton>
|
||||||
</Stack>
|
</Stack>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user