Skip to content

Commit 8553476

Browse files
committed
say class, not className
1 parent 44ca010 commit 8553476

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

src/About.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import type { FunctionComponent } from 'preact';
33
const About: FunctionComponent = () => (
44
<>
55
<h2>About</h2>
6-
<p className="hint">
6+
<p class="hint">
77
This is a utility for finding your closest photo for several different
88
game modes. All computations are performed on your computer and no data is
99
transmitted anywhere. If you want to see or modify the source code, feel

src/Data.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const Data: FunctionComponent = () => {
3434
Load File
3535
</FileInput>
3636
<MaybeError error={error} />
37-
<p className="hint">
37+
<p class="hint">
3838
Supported files:{' '}
3939
<a href="https://en.wikipedia.org/wiki/Comma-separated_values">CSV</a>{' '}
4040
with latitude and longitude columns, or{' '}

src/Icon.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ interface Props {
88

99
const Icon: FunctionComponent<Props> = ({ name, label, onClick }) => (
1010
<span
11-
className="icon"
11+
class="icon"
1212
role={onClick ? 'button' : 'img'}
1313
aria-label={label}
1414
onClick={onClick}

src/MaybeError.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ interface Props {
66

77
const MaybeError: FunctionComponent<Props> = ({ error }) => {
88
if (error) {
9-
return <p className="error">{error}</p>;
9+
return <p class="error">{error}</p>;
1010
} else {
1111
return null;
1212
}

src/Radio.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export function Selector<T extends string | number>({
6565
);
6666

6767
return (
68-
<p id={id} className="selector">
68+
<p id={id} class="selector">
6969
{children}
7070
{values.map(([value, name]) => (
7171
<Radio

src/Results/PositionCell.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const PositionCell: FunctionComponent<Props> = ({ coord }) => {
1919
navigator.clipboard.writeText(stringCoord).catch(console.error);
2020
}, [stringCoord]);
2121
return (
22-
<td className="position">
22+
<td class="position">
2323
<a href={url}>{stringCoord}</a>
2424
<Icon name="copy" label="Copy coordinates" onClick={onCopyClick} />
2525
</td>

0 commit comments

Comments
 (0)