Skip to content

Commit

Permalink
update excel icon
Browse files Browse the repository at this point in the history
  • Loading branch information
abdulrahmanshabeekmohamed committed Dec 14, 2024
1 parent 31724ed commit 14cc190
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
13 changes: 8 additions & 5 deletions ReportDemoComponents/SimpleClosedXMLDemo.razor
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,14 @@
@implements IAsyncDisposable

<button class="[ bg-fuchsia-500 ] [ px-4 py-2 ] [ inline-block ] [ rounded-md ] [ inline-flex ] [ space-x-1 ]" @onclick="SimpleExcel">
<svg xmlns="http://www.w3.org/2000/svg" class="[ icon icon-tabler icon-tabler-printer] [ text-white ]" width="24" height="24" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
<path d="M17 17h2a2 2 0 0 0 2 -2v-4a2 2 0 0 0 -2 -2h-14a2 2 0 0 0 -2 2v4a2 2 0 0 0 2 2h2"></path>
<path d="M17 9v-4a2 2 0 0 0 -2 -2h-6a2 2 0 0 0 -2 2v4"></path>
<path d="M7 13m0 2a2 2 0 0 1 2 -2h6a2 2 0 0 1 2 2v4a2 2 0 0 1 -2 2h-6a2 2 0 0 1 -2 -2z"></path>
<svg xmlns="http://www.w3.org/2000/svg" class="[ icon icon-tabler icons-tabler-outline icon-tabler-file-type-xls ] [ text-white ]" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"/>
<path d="M14 3v4a1 1 0 0 0 1 1h4" />
<path d="M5 12v-7a2 2 0 0 1 2 -2h7l5 5v4" />
<path d="M4 15l4 6" />
<path d="M4 21l4 -6" />
<path d="M17 20.25c0 .414 .336 .75 .75 .75h1.25a1 1 0 0 0 1 -1v-1a1 1 0 0 0 -1 -1h-1a1 1 0 0 1 -1 -1v-1a1 1 0 0 1 1 -1h1.25a.75 .75 0 0 1 .75 .75" />
<path d="M11 15v6h3" />
</svg>
<span class="[ text-white ]">Download Simple Excel</span>
</button>
Expand Down
2 changes: 1 addition & 1 deletion ReportDemoComponents/Utilities.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ public static class Utilities
{
public static DataTable ToDataTable<T>(this IEnumerable<T> data, string name)
{
PropertyDescriptorCollection properties = TypeDescriptor.GetProperties(typeof(T)!);
PropertyDescriptorCollection properties = TypeDescriptor.GetProperties(typeof(T));

Check warning on line 10 in ReportDemoComponents/Utilities.cs

View workflow job for this annotation

GitHub Actions / build-test-deploy

'componentType' argument does not satisfy 'DynamicallyAccessedMemberTypes.All' in call to 'System.ComponentModel.TypeDescriptor.GetProperties(Type)'. The generic parameter 'T' of 'ReportDemoComponents.Utilities.ToDataTable<T>(IEnumerable<T>, String)' does not have matching annotations. The source value must declare at least the same requirements as those declared on the target location it is assigned to.

Check warning on line 10 in ReportDemoComponents/Utilities.cs

View workflow job for this annotation

GitHub Actions / build-test-deploy

Using member 'System.ComponentModel.TypeDescriptor.GetProperties(Type)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. PropertyDescriptor's PropertyType cannot be statically discovered.
DataTable table = new(name);

foreach (PropertyDescriptor prop in properties)
Expand Down

0 comments on commit 14cc190

Please sign in to comment.