Skip to content

Commit

Permalink
refactor: NET6_0_OR_GREATER checks no more needed
Browse files Browse the repository at this point in the history
  • Loading branch information
SonicGD committed Jan 14, 2022
1 parent 531806d commit 8316843
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@

@code {

#if NET6_0_OR_GREATER
[EditorRequired]
#endif
[Parameter]
public string Error { get; set; } = null!;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@

@code {

#if NET6_0_OR_GREATER
[EditorRequired]
#endif
[Parameter]
public string Error { get; set; } = null!;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@

@code
{
#if NET6_0_OR_GREATER
[EditorRequired]
#endif
[Parameter]
public BlockForm BlockForm { get; set; } = null!;

Expand Down
4 changes: 0 additions & 4 deletions src/Sitko.Blockly.Blazor/Display/BlockComponent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@ namespace Sitko.Blockly.Blazor.Display;
public abstract class BlockComponent<TBlock> : BaseComponent
where TBlock : ContentBlock
{
#if NET6_0_OR_GREATER
[EditorRequired]
#endif
[Parameter]
public TBlock Block { get; set; } = null!;
}
Expand All @@ -17,9 +15,7 @@ public abstract class BlockComponent<TBlock, TListOptions> : BlockComponent<TBlo
where TListOptions : BlazorBlocklyListOptions
where TBlock : ContentBlock
{
#if NET6_0_OR_GREATER
[EditorRequired]
#endif
[Parameter]
public TListOptions Options { get; set; } = null!;
}
2 changes: 0 additions & 2 deletions src/Sitko.Blockly.Blazor/Display/BlocksList.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@ namespace Sitko.Blockly.Blazor.Display;

public abstract class BlocksList<TOptions> : BaseComponent where TOptions : BlazorBlocklyListOptions
{
#if NET6_0_OR_GREATER
[EditorRequired]
#endif
[Parameter]
public IEnumerable<ContentBlock> EntityBlocks { get; set; } = null!;

Expand Down
4 changes: 0 additions & 4 deletions src/Sitko.Blockly.Blazor/Forms/BlockForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@ protected void NotifyChange()

public abstract class BlockForm<TBlock> : BlockForm where TBlock : ContentBlock
{
#if NET6_0_OR_GREATER
[EditorRequired]
#endif
[Parameter]
public TBlock Block { get; set; } = default!;

Expand All @@ -41,9 +39,7 @@ public abstract class BlockForm<TBlock, TBlocklyFormOptions> : BlockForm<TBlock>
where TBlock : ContentBlock
where TBlocklyFormOptions : BlocklyFormOptions
{
#if NET6_0_OR_GREATER
[EditorRequired]
#endif
[Parameter]
public TBlocklyFormOptions FormOptions { get; set; } = null!;
}

0 comments on commit 8316843

Please sign in to comment.