Skip to content

Commit

Permalink
fix: remove placeholder for PickerInput
Browse files Browse the repository at this point in the history
  • Loading branch information
GZTimeWalker committed Dec 10, 2023
1 parent 7182d5a commit c2d53b1
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
4 changes: 0 additions & 4 deletions src/GZCTF/ClientApp/src/components/admin/GameCreateModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ const GameCreateModal: FC<GameCreateModalProps> = (props) => {
<Group grow position="apart">
<DatePickerInput
label="开始日期"
placeholder="Start Date"
value={start.toDate()}
clearable={false}
onChange={(e) => {
Expand All @@ -92,7 +91,6 @@ const GameCreateModal: FC<GameCreateModalProps> = (props) => {
/>
<TimeInput
label="开始时间"
placeholder="Start Time"
value={start.format('HH:mm:ss')}
onChange={(e) => {
const newTime = e.target.value.split(':')
Expand All @@ -114,7 +112,6 @@ const GameCreateModal: FC<GameCreateModalProps> = (props) => {
<DatePickerInput
label="结束日期"
minDate={start.toDate()}
placeholder="End time"
value={end.toDate()}
clearable={false}
onChange={(e) => {
Expand All @@ -126,7 +123,6 @@ const GameCreateModal: FC<GameCreateModalProps> = (props) => {
/>
<TimeInput
label="结束时间"
placeholder="End time"
value={end.format('HH:mm:ss')}
onChange={(e) => {
const newTime = e.target.value.split(':')
Expand Down
4 changes: 0 additions & 4 deletions src/GZCTF/ClientApp/src/pages/admin/games/[id]/Info.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,6 @@ const GameInfoEdit: FC = () => {
/>
<DatePickerInput
label="开始日期"
placeholder="Start Date"
value={start.toDate()}
disabled={disabled}
clearable={false}
Expand All @@ -280,7 +279,6 @@ const GameInfoEdit: FC = () => {
<TimeInput
label="开始时间"
disabled={disabled}
placeholder="Start Time"
value={start.format('HH:mm:ss')}
onChange={(e) => {
const newTime = e.target.value.split(':')
Expand All @@ -301,7 +299,6 @@ const GameInfoEdit: FC = () => {
label="结束日期"
disabled={disabled}
minDate={start.toDate()}
placeholder="End time"
value={end.toDate()}
clearable={false}
onChange={(e) => {
Expand All @@ -314,7 +311,6 @@ const GameInfoEdit: FC = () => {
<TimeInput
label="结束时间"
disabled={disabled}
placeholder="End time"
value={end.format('HH:mm:ss')}
onChange={(e) => {
const newTime = e.target.value.split(':')
Expand Down

0 comments on commit c2d53b1

Please sign in to comment.