Skip to content

Commit 032bb5c

Browse files
authored
UI: add space to blacklist record footer (#1001)
* refactor: add spacing to blacklist record footer * refactor: remove duplicated if condition * refactor: remove return from void function * fix: remove react warning for unrecognized property original warning: Warning: React does not recognize the `cellHeight` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `cellheight` instead. If you accidentally passed it from a parent component, remove it from the DOM element. * fix: should use default pagesize --------- Co-authored-by: Zarrewitch <>
1 parent f1f41cb commit 032bb5c

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

rcongui/src/components/Blacklist/BlacklistRecordGrid.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -165,9 +165,6 @@ const BlacklistRecordTile = ({
165165
const text = getReportTemplate();
166166
if (navigator.clipboard === undefined) {
167167
alert(`This feature only works if your rcon uses HTTPS.`);
168-
return;
169-
}
170-
if (navigator.clipboard === undefined) {
171168
} else {
172169
navigator.clipboard.writeText(text).then(
173170
function () {
@@ -204,8 +201,7 @@ const BlacklistRecordTile = ({
204201
<Grid
205202
container
206203
justifyContent="space-around"
207-
spacing={0}
208-
204+
spacing={1}
209205
>
210206
<Grid>
211207
<Tooltip title={createdAt.format("LLLL")} arrow>
@@ -313,7 +309,7 @@ const BlacklistRecordGrid = ({
313309
(<Fragment>
314310
<Grid container>
315311
<Grid size={12}>
316-
<ImageList cols={size} cellHeight={210} spacing={12}>
312+
<ImageList cols={size} spacing={12}>
317313
{records.map((record) => {
318314
return (
319315
<ImageListItem

rcongui/src/pages/records/blacklists/index.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ const BlacklistRecords = () => {
207207
</Grid>
208208
<Grid size={12}>
209209
<MyPagination
210-
pageSize={searchQuery.pageSize}
210+
pageSize={searchQuery.page_size}
211211
page={page}
212212
setPage={setPage}
213213
total={totalRecords}
@@ -223,7 +223,7 @@ const BlacklistRecords = () => {
223223
</Grid>
224224
<Grid size={12}>
225225
<MyPagination
226-
pageSize={searchQuery.pageSize}
226+
pageSize={searchQuery.page_size}
227227
page={page}
228228
setPage={setPage}
229229
total={totalRecords}

0 commit comments

Comments
 (0)